summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-09 17:44:52 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-09 20:32:40 +0100
commitd2f57b6c1275e0e6ed7f214d471ddb84ecb1b4ad (patch)
tree1728c15960c67ec9cc322e83ed37e0dc8e1f51b6 /xmloff
parenta2454a42ad2236f0f6b88be166bc7e6a8f90f036 (diff)
fdo#43460: use isEmpty()
Change-Id: I47b35af71277fdda19767a553c960bf12164b92f
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/sdxmlexp.cxx6
-rw-r--r--xmloff/source/style/fonthdl.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index 86cdd8c01ddd..b71f8513f20e 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -2164,13 +2164,13 @@ void SdXMLExport::exportPresentationSettings()
if( !xPageName.is() )
continue;
- if( sTmp.getLength() != 0 )
+ if( !sTmp.isEmpty() )
sTmp.append( sal_Unicode( ',' ) );
sTmp.append( xPageName->getName() );
}
- if( sTmp.getLength() )
+ if( !sTmp.isEmpty() )
AddAttribute(XML_NAMESPACE_PRESENTATION, XML_PAGES, sTmp.makeStringAndClear() );
SvXMLElementExport aShows(*this, XML_NAMESPACE_PRESENTATION, XML_SHOW, sal_True, sal_True);
@@ -2685,7 +2685,7 @@ OUString SdXMLExport::getNavigationOrder( const Reference< XDrawPage >& xDrawPag
OUString sId( getInterfaceToIdentifierMapper().registerReference( Reference< XInterface >( xNavOrder->getByIndex( nIndex ), UNO_QUERY ) ) );
if( !sId.isEmpty() )
{
- if( sNavOrder.getLength() != 0 )
+ if( !sNavOrder.isEmpty() )
sNavOrder.append( (sal_Unicode)' ' );
sNavOrder.append( sId );
}
diff --git a/xmloff/source/style/fonthdl.cxx b/xmloff/source/style/fonthdl.cxx
index 29ca53d9c629..fb9f18c049c8 100644
--- a/xmloff/source/style/fonthdl.cxx
+++ b/xmloff/source/style/fonthdl.cxx
@@ -96,7 +96,7 @@ sal_Bool XMLFontFamilyNamePropHdl::importXML( const OUString& rStrImpValue, uno:
if( nFirst <= nLast )
{
- if( sValue.getLength() != 0 )
+ if( !sValue.isEmpty() )
sValue.append(';');
sValue.append(rStrImpValue.copy( nFirst, nLast-nFirst+1));
@@ -107,7 +107,7 @@ sal_Bool XMLFontFamilyNamePropHdl::importXML( const OUString& rStrImpValue, uno:
}
while( -1 != nPos );
- if (sValue.getLength())
+ if (!sValue.isEmpty())
{
rValue <<= sValue.makeStringAndClear();
bRet = sal_True;