summaryrefslogtreecommitdiff
path: root/xmloff/source/style/styleexp.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-26 14:47:19 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-26 19:19:41 -0200
commitdfa8287f8bbb6c523266237ff67eb4b3d07b5c8b (patch)
tree137193f28913a47993aa341b72a19a73e8452032 /xmloff/source/style/styleexp.cxx
parent78cca63070ae6cf82b45ec3bc75fafa2db31a7f2 (diff)
Fix for fdo43460 Part XLIX getLength() to isEmpty()
Part XLIX Modules xmloff (part 3)
Diffstat (limited to 'xmloff/source/style/styleexp.cxx')
-rw-r--r--xmloff/source/style/styleexp.cxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index a4af1aa9df5e..e7c48f2f84c3 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -131,14 +131,14 @@ sal_Bool XMLStyleExport::exportStyle(
sName);
// style:family="..."
- if( rXMLFamily.getLength() > 0 )
+ if( !rXMLFamily.isEmpty() )
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_FAMILY, rXMLFamily);
// style:parent-style-name="..."
OUString sParentString(rStyle->getParentStyle());
OUString sParent;
- if(sParentString.getLength())
+ if(!sParentString.isEmpty())
{
if(pPrefix)
sParent = *pPrefix;
@@ -147,7 +147,7 @@ sal_Bool XMLStyleExport::exportStyle(
else
sParent = sPoolStyleName;
- if( sParent.getLength() )
+ if( !sParent.isEmpty() )
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_PARENT_STYLE_NAME,
GetExport().EncodeStyleName( sParent ) );
@@ -223,7 +223,7 @@ sal_Bool XMLStyleExport::exportStyle(
this information is lost and causes an error, if the parent
style has a list style set. (#i69523#)
*/
- if ( !sListName.getLength() )
+ if ( sListName.isEmpty() )
{
GetExport().AddAttribute( XML_NAMESPACE_STYLE,
XML_LIST_STYLE_NAME,
@@ -259,7 +259,7 @@ sal_Bool XMLStyleExport::exportStyle(
}
}
- if ( sListName.getLength() && !bSuppressListStyle )
+ if ( !sListName.isEmpty() && !bSuppressListStyle )
{
GetExport().AddAttribute( XML_NAMESPACE_STYLE,
XML_LIST_STYLE_NAME,
@@ -278,8 +278,7 @@ sal_Bool XMLStyleExport::exportStyle(
while ( xStyle.is() )
{
OUString aParentStyle( xStyle->getParentStyle() );
- if ( aParentStyle.getLength() == 0 ||
- !xStyles->hasByName( aParentStyle ) )
+ if ( aParentStyle.isEmpty() || !xStyles->hasByName( aParentStyle ) )
{
break;
}
@@ -356,7 +355,7 @@ sal_Bool XMLStyleExport::exportDefaultStyle(
{
// style:family="..."
- if( rXMLFamily.getLength() > 0 )
+ if( !rXMLFamily.isEmpty() )
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_FAMILY,
rXMLFamily );
// <style:style>
@@ -491,8 +490,7 @@ void XMLStyleExport::exportStyleFamily(
if( !xPropSetInfo->hasPropertyByName( sFollowStyle ) )
{
- DBG_ASSERT( 0==sFollowStyle.getLength(),
- "no follow style???" );
+ DBG_ASSERT( sFollowStyle.isEmpty(), "no follow style???" );
continue;
}