diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-25 21:59:48 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-25 21:59:48 -0200 |
commit | 3dbb89e5a39e7811d2fc0c1fbad012c3d565396b (patch) | |
tree | c30b07e879ad20c5bded2291296f9633c273ab5e /xmloff/source/style/XMLPageExport.cxx | |
parent | 4228c5542b57b43064bbefb3cc79c4eb51e059d6 (diff) |
Fix for fdo43460 Part XLVIII getLength() to isEmpty()
Part XLVIII
Modules
xmloff (part 2)
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 ) ); |