diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-26 17:05:51 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-26 19:19:41 -0200 |
commit | 596469d4183ff451833348cb4454ad0d02e0138f (patch) | |
tree | 74bdef7370f3d0be408487ebeacab00e7dafa4fe /xmloff/source/text/XMLTextMasterPageContext.cxx | |
parent | dfa8287f8bbb6c523266237ff67eb4b3d07b5c8b (diff) |
Fix for fdo43460 Part LI getLength() to isEmpty()
Part LI
Modules
xmloff (part 4)
Diffstat (limited to 'xmloff/source/text/XMLTextMasterPageContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextMasterPageContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLTextMasterPageContext.cxx b/xmloff/source/text/XMLTextMasterPageContext.cxx index d2f214a9bcce..1075079e1143 100644 --- a/xmloff/source/text/XMLTextMasterPageContext.cxx +++ b/xmloff/source/text/XMLTextMasterPageContext.cxx @@ -116,7 +116,7 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, } } - if( sDisplayName.getLength() ) + if( !sDisplayName.isEmpty() ) { rImport.AddStyleDisplayName( XML_STYLE_FAMILY_MASTER_PAGE, sName, sDisplayName ); @@ -126,7 +126,7 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, sDisplayName = sName; } - if( 0 == sDisplayName.getLength() ) + if( sDisplayName.isEmpty() ) return; Reference < XNameContainer > xPageStyles = @@ -252,7 +252,7 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite ) if( xStyle.is() && (IsNew() || bOverwrite) ) { Reference < XPropertySet > xPropSet( xStyle, UNO_QUERY ); - if( sPageMasterName.getLength() ) + if( !sPageMasterName.isEmpty() ) { XMLPropStyleContext* pStyle = GetImport().GetTextImport()->FindPageMaster( sPageMasterName ); @@ -274,7 +274,7 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite ) OUString sDisplayFollow( GetImport().GetStyleDisplayName( XML_STYLE_FAMILY_MASTER_PAGE, sFollow ) ); - if( !sDisplayFollow.getLength() || + if( sDisplayFollow.isEmpty() || !xPageStyles->hasByName( sDisplayFollow ) ) sDisplayFollow = xStyle->getName(); |