diff options
Diffstat (limited to 'xmloff/source/style/XMLPageExport.cxx')
-rw-r--r-- | xmloff/source/style/XMLPageExport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx index 41eccc2e25ed..d98d8d7bdc85 100644 --- a/xmloff/source/style/XMLPageExport.cxx +++ b/xmloff/source/style/XMLPageExport.cxx @@ -82,7 +82,7 @@ void XMLPageExport::collectPageMasterAutoStyle( { OUString sParent; rPageMasterName = rExport.GetAutoStylePool()->Find( XML_STYLE_FAMILY_PAGE_MASTER, sParent, xPropStates ); - if (!rPageMasterName.getLength()) + if (rPageMasterName.isEmpty()) rPageMasterName = rExport.GetAutoStylePool()->Add(XML_STYLE_FAMILY_PAGE_MASTER, sParent, xPropStates); } } @@ -141,7 +141,7 @@ sal_Bool XMLPageExport::exportStyle( OUString sNextName; xPropSet->getPropertyValue( sFollowStyle ) >>= sNextName; - if( sName != sNextName && sNextName.getLength() ) + if( sName != sNextName && !sNextName.isEmpty() ) { GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_NEXT_STYLE_NAME, GetExport().EncodeStyleName( sNextName ) ); |