From efef273e2c61b19a63572a71b103e3b1490f15af Mon Sep 17 00:00:00 2001 From: nadith Date: Fri, 29 Jul 2016 12:22:18 +0530 Subject: tdf#100726: Improve readability of OUString concatenation this bug fixed in the modules between canvas - cppu Change-Id: I2022b022897dafde20251352376e3facdb9b8d75 Reviewed-on: https://gerrit.libreoffice.org/27663 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/container/embeddedobjectcontainer.cxx | 3 +-- comphelper/source/misc/mimeconfighelper.cxx | 3 +-- comphelper/source/xml/ofopxmlhelper.cxx | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'comphelper/source') diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 8207e5aae710..1e62e8368416 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -218,8 +218,7 @@ OUString EmbeddedObjectContainer::CreateUniqueObjectName() sal_Int32 i=1; do { - aStr = aPersistName; - aStr += OUString::number( i++ ); + aStr = aPersistName + OUString::number( i++ ); } while( HasEmbeddedObject( aStr ) ); // TODO/LATER: should we consider deleted objects? diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx index ecd82fe506b2..e4fd84c77214 100644 --- a/comphelper/source/misc/mimeconfighelper.cxx +++ b/comphelper/source/misc/mimeconfighelper.cxx @@ -57,8 +57,7 @@ OUString MimeConfigurationHelper::GetStringClassIDRepresentation( const uno::Seq sal_Int32 nDigit1 = (sal_Int32)( (sal_uInt8)aClassID[nInd] / 16 ); sal_Int32 nDigit2 = (sal_uInt8)aClassID[nInd] % 16; - aResult += OUString::number( nDigit1, 16 ); - aResult += OUString::number( nDigit2, 16 ); + aResult += OUString::number( nDigit1, 16 ) + OUString::number( nDigit2, 16 ); } } diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx index b50c30ec9daa..02f5815c7901 100644 --- a/comphelper/source/xml/ofopxmlhelper.cxx +++ b/comphelper/source/xml/ofopxmlhelper.cxx @@ -98,8 +98,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > ReadRelationsInfoSequence( const uno::Reference< uno::XComponentContext >& rContext ) throw( uno::Exception ) { - OUString aStringID = "_rels/"; - aStringID += aStreamName; + OUString aStringID = "_rels/" + aStreamName; return ReadSequence_Impl( xInStream, aStringID, RELATIONINFO_FORMAT, rContext ); } -- cgit