diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-26 14:47:19 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-26 19:19:41 -0200 |
commit | dfa8287f8bbb6c523266237ff67eb4b3d07b5c8b (patch) | |
tree | 137193f28913a47993aa341b72a19a73e8452032 /xmloff/source/style/prstylei.cxx | |
parent | 78cca63070ae6cf82b45ec3bc75fafa2db31a7f2 (diff) |
Fix for fdo43460 Part XLIX getLength() to isEmpty()
Part XLIX
Modules
xmloff (part 3)
Diffstat (limited to 'xmloff/source/style/prstylei.cxx')
-rw-r--r-- | xmloff/source/style/prstylei.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/style/prstylei.cxx b/xmloff/source/style/prstylei.cxx index 8e2a3f7867a3..92178880fdea 100644 --- a/xmloff/source/style/prstylei.cxx +++ b/xmloff/source/style/prstylei.cxx @@ -165,7 +165,7 @@ Reference < XStyle > XMLPropStyleContext::Create() OUString sServiceName( ((SvXMLStylesContext *)&mxStyles)->GetServiceName( GetFamily() ) ); - if( sServiceName.getLength() ) + if( !sServiceName.isEmpty() ) { Reference< XMultiServiceFactory > xFactory( GetImport().GetModel(), UNO_QUERY ); @@ -209,7 +209,7 @@ void XMLPropStyleContext::CreateAndInsert( sal_Bool bOverwrite ) PropertyValue *pProps = aValues.getArray() + nLen; pProps->Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ParaStyleName")); OUString sParent( GetParentName() ); - if( sParent.getLength() ) + if( !sParent.isEmpty() ) sParent = GetImport().GetStyleDisplayName( GetFamily(), sParent ); else sParent = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Standard")); @@ -240,7 +240,7 @@ void XMLPropStyleContext::CreateAndInsert( sal_Bool bOverwrite ) else { const OUString& rName = GetDisplayName(); - if( 0 == rName.getLength() || IsDefaultStyle() ) + if( rName.isEmpty() || IsDefaultStyle() ) return; Reference < XNameContainer > xFamilies = @@ -354,9 +354,9 @@ void XMLPropStyleContext::Finish( sal_Bool bOverwrite ) // connect parent OUString sParent( GetParentName() ); - if( sParent.getLength() ) + if( !sParent.isEmpty() ) sParent = GetImport().GetStyleDisplayName( GetFamily(), sParent ); - if( sParent.getLength() && !xFamilies->hasByName( sParent ) ) + if( !sParent.isEmpty() && !xFamilies->hasByName( sParent ) ) sParent = OUString(); if( sParent != mxStyle->getParentStyle() ) @@ -392,9 +392,9 @@ void XMLPropStyleContext::Finish( sal_Bool bOverwrite ) // connect follow OUString sFollow( GetFollow() ); - if( sFollow.getLength() ) + if( !sFollow.isEmpty() ) sFollow = GetImport().GetStyleDisplayName( GetFamily(), sFollow ); - if( !sFollow.getLength() || !xFamilies->hasByName( sFollow ) ) + if( sFollow.isEmpty() || !xFamilies->hasByName( sFollow ) ) sFollow = mxStyle->getName(); Reference < XPropertySet > xPropSet( mxStyle, UNO_QUERY ); |