From d2f57b6c1275e0e6ed7f214d471ddb84ecb1b4ad Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 9 Mar 2013 17:44:52 +0100 Subject: fdo#43460: use isEmpty() Change-Id: I47b35af71277fdda19767a553c960bf12164b92f --- xmloff/source/draw/sdxmlexp.cxx | 6 +++--- xmloff/source/style/fonthdl.cxx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xmloff') 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; -- cgit