summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ObjectIdentifier.cxx
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-17 16:32:16 +0200
committerNoel Power <noel.power@suse.com>2013-06-17 15:03:35 +0000
commitd30df91b1e5ce90826a96e4f494791c0b61b8b7c (patch)
treee2cdd0056be2ac9f761e2b41b0729dfbc2375ae1 /chart2/source/tools/ObjectIdentifier.cxx
parentd24f5f8ab835c01908c3ac1fff8dd39a6c1e5112 (diff)
fdo#43460 chart2: use isEmpty()
Change-Id: Ia74923ed8f00adfa3f7758edb4e5755fedb0ec8a Reviewed-on: https://gerrit.libreoffice.org/4315 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'chart2/source/tools/ObjectIdentifier.cxx')
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 9dc31b17363a..2358057f95c5 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -1005,7 +1005,7 @@ OUString ObjectIdentifier::addChildParticle( const OUString& rParticle, const OU
{
OUStringBuffer aRet(rParticle);
- if( aRet.getLength() && !rChildParticle.isEmpty() )
+ if( !aRet.isEmpty() && !rChildParticle.isEmpty() )
aRet.appendAscii(":");
if( !rChildParticle.isEmpty() )
aRet.append(rChildParticle);
@@ -1016,7 +1016,7 @@ OUString ObjectIdentifier::addChildParticle( const OUString& rParticle, const OU
OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType, sal_Int32 nIndex )
{
OUStringBuffer aRet( getStringForType( eObjectType ) );
- if( aRet.getLength() )
+ if( !aRet.isEmpty() )
{
aRet.appendAscii("=");
aRet.append(OUString::valueOf(nIndex));