diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-06-18 19:53:19 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-06-19 10:10:39 +0000 |
commit | ad09b2f7efac628ac4261b86f9fd085f83ebe717 (patch) | |
tree | 788329ea0baed2a1a1bf8b21bb56122aa1f292b1 /xmloff/source/draw | |
parent | 2e963d0510aacf2d5e59a7604c106bae7a928921 (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/draw')
-rw-r--r-- | xmloff/source/draw/animationexport.cxx | 10 | ||||
-rw-r--r-- | xmloff/source/draw/shapeexport4.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/xexptran.cxx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/xmloff/source/draw/animationexport.cxx b/xmloff/source/draw/animationexport.cxx index f3ba9647105e..fd31cca8db66 100644 --- a/xmloff/source/draw/animationexport.cxx +++ b/xmloff/source/draw/animationexport.cxx @@ -1200,7 +1200,7 @@ void AnimationsExporterImpl::exportAnimate( const Reference< XAnimate >& xAnimat while( nLength-- ) { - if( sTmp.getLength() ) + if( !sTmp.isEmpty() ) sTmp.append( (sal_Unicode)';' ); sTmp.append( *p++ ); @@ -1244,7 +1244,7 @@ void AnimationsExporterImpl::exportAnimate( const Reference< XAnimate >& xAnimat while( nLength-- ) { - if( sTmp.getLength() ) + if( !sTmp.isEmpty() ) sTmp.append( (sal_Unicode)';' ); sTmp.append( p->Time ); @@ -1475,7 +1475,7 @@ void AnimationsExporterImpl::convertValue( XMLTokenEnum eAttributeName, OUString for( nElement = 0; nElement < nLength; nElement++, pAny++ ) { - if( sTmp.getLength() ) + if( !sTmp.isEmpty() ) sTmp.append( (sal_Unicode)';' ); convertValue( eAttributeName, sTmp2, *pAny ); sTmp.append( sTmp2.makeStringAndClear() ); @@ -1557,7 +1557,7 @@ void AnimationsExporterImpl::convertTiming( OUStringBuffer& sTmp, const Any& rVa for( nElement = 0; nElement < nLength; nElement++, pAny++ ) { - if( sTmp.getLength() ) + if( !sTmp.isEmpty() ) sTmp.append( (sal_Unicode)';' ); convertTiming( sTmp2, *pAny ); sTmp.append( sTmp2.makeStringAndClear() ); @@ -1596,7 +1596,7 @@ void AnimationsExporterImpl::convertTiming( OUStringBuffer& sTmp, const Any& rVa { convertTiming( sTmp2, pEvent->Offset ); - if( sTmp.getLength() ) + if( !sTmp.isEmpty() ) sTmp.append( (sal_Unicode)'+' ); sTmp.append( sTmp2.makeStringAndClear() ); diff --git a/xmloff/source/draw/shapeexport4.cxx b/xmloff/source/draw/shapeexport4.cxx index ad34554b18f0..b83f73e810c4 100644 --- a/xmloff/source/draw/shapeexport4.cxx +++ b/xmloff/source/draw/shapeexport4.cxx @@ -78,7 +78,7 @@ using ::com::sun::star::uno::Sequence; void ExportParameter( OUStringBuffer& rStrBuffer, const com::sun::star::drawing::EnhancedCustomShapeParameter& rParameter ) { - if ( rStrBuffer.getLength() ) + if ( !rStrBuffer.isEmpty() ) rStrBuffer.append( (sal_Unicode)' ' ); if ( rParameter.Value.getValueTypeClass() == uno::TypeClass_DOUBLE ) { @@ -364,7 +364,7 @@ void ImpExportEnhancedPath( SvXMLExport& rExport, else aSegment = rSegments[ j ]; - if ( aStrBuffer.getLength() ) + if ( !aStrBuffer.isEmpty() ) aStrBuffer.append( (sal_Unicode)' ' ); sal_Int32 nParameter = 0; diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx index 97f844315eb0..127004d0a8de 100644 --- a/xmloff/source/draw/xexptran.cxx +++ b/xmloff/source/draw/xexptran.cxx @@ -227,7 +227,7 @@ double Imp_GetDoubleChar(const OUString& rStr, sal_Int32& rPos, const sal_Int32 sNumberString.append(rStr[rPos++]); } - if(sNumberString.getLength()) + if(!sNumberString.isEmpty()) { if(bLookForUnits) rConv.convertDouble(fRetval, sNumberString.makeStringAndClear(), true); |