diff options
author | nadith <nadmalinda@gmail.com> | 2016-07-29 12:22:18 +0530 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-01 06:12:30 +0000 |
commit | efef273e2c61b19a63572a71b103e3b1490f15af (patch) | |
tree | 1d441e00b15eabd50820cae5e300cc8a6b6bb765 /comphelper | |
parent | dadb28a2fbe3e50361b60cee9dda43b1fba3629e (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/container/embeddedobjectcontainer.cxx | 3 | ||||
-rw-r--r-- | comphelper/source/misc/mimeconfighelper.cxx | 3 | ||||
-rw-r--r-- | comphelper/source/xml/ofopxmlhelper.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
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 ); } |