Kaydet (Commit) d30df91b authored tarafından Jelle van der Waa's avatar Jelle van der Waa Kaydeden (comit) Noel Power

fdo#43460 chart2: use isEmpty()

Change-Id: Ia74923ed8f00adfa3f7758edb4e5755fedb0ec8a
Reviewed-on: https://gerrit.libreoffice.org/4315Reviewed-by: 's avatarNoel Power <noel.power@suse.com>
Tested-by: 's avatarNoel Power <noel.power@suse.com>
üst d24f5f8a
...@@ -1005,7 +1005,7 @@ OUString ObjectIdentifier::addChildParticle( const OUString& rParticle, const OU ...@@ -1005,7 +1005,7 @@ OUString ObjectIdentifier::addChildParticle( const OUString& rParticle, const OU
{ {
OUStringBuffer aRet(rParticle); OUStringBuffer aRet(rParticle);
if( aRet.getLength() && !rChildParticle.isEmpty() ) if( !aRet.isEmpty() && !rChildParticle.isEmpty() )
aRet.appendAscii(":"); aRet.appendAscii(":");
if( !rChildParticle.isEmpty() ) if( !rChildParticle.isEmpty() )
aRet.append(rChildParticle); aRet.append(rChildParticle);
...@@ -1016,7 +1016,7 @@ OUString ObjectIdentifier::addChildParticle( const OUString& rParticle, const OU ...@@ -1016,7 +1016,7 @@ OUString ObjectIdentifier::addChildParticle( const OUString& rParticle, const OU
OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType, sal_Int32 nIndex ) OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType, sal_Int32 nIndex )
{ {
OUStringBuffer aRet( getStringForType( eObjectType ) ); OUStringBuffer aRet( getStringForType( eObjectType ) );
if( aRet.getLength() ) if( !aRet.isEmpty() )
{ {
aRet.appendAscii("="); aRet.appendAscii("=");
aRet.append(OUString::valueOf(nIndex)); aRet.append(OUString::valueOf(nIndex));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment