summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLBackgroundImageExport.cxx
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-18 19:53:19 +0200
committerNoel Power <noel.power@suse.com>2013-06-19 10:10:39 +0000
commitad09b2f7efac628ac4261b86f9fd085f83ebe717 (patch)
tree788329ea0baed2a1a1bf8b21bb56122aa1f292b1 /xmloff/source/style/XMLBackgroundImageExport.cxx
parent2e963d0510aacf2d5e59a7604c106bae7a928921 (diff)
fdo#43460 xmloff: use isEmpty()
Change-Id: I298767cc0ec03c22d3ae687939f0f9d5ce1963c1 Reviewed-on: https://gerrit.libreoffice.org/4348 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'xmloff/source/style/XMLBackgroundImageExport.cxx')
-rw-r--r--xmloff/source/style/XMLBackgroundImageExport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/XMLBackgroundImageExport.cxx b/xmloff/source/style/XMLBackgroundImageExport.cxx
index 362c84af2792..4aaa340cab79 100644
--- a/xmloff/source/style/XMLBackgroundImageExport.cxx
+++ b/xmloff/source/style/XMLBackgroundImageExport.cxx
@@ -90,7 +90,7 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL,
break;
}
- if( aOut.getLength() )
+ if( !aOut.isEmpty() )
{
aOut.append( sal_Unicode( ' ' ) );
@@ -115,7 +115,7 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL,
break;
}
}
- if( aOut.getLength() )
+ if( !aOut.isEmpty() )
GetExport().AddAttribute( XML_NAMESPACE_STYLE,
XML_POSITION, aOut.makeStringAndClear() );
@@ -127,7 +127,7 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL,
{
aOut.append( GetXMLToken(XML_BACKGROUND_NO_REPEAT) );
}
- if( aOut.getLength() )
+ if( !aOut.isEmpty() )
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_REPEAT,
aOut.makeStringAndClear() );