diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2016-07-01 14:07:52 +0300 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-03 15:46:58 +0000 |
commit | d5784e91e9cd83336dc16392fd65cb11c5373c9c (patch) | |
tree | d4113a679a56f6352b3ec49ad0cbe636fe9c3038 /basctl/source/basicide/scriptdocument.cxx | |
parent | bad68fd0b4a40062990c96a1a3f8d7a31bd84180 (diff) |
Improve readability of OUString concatanation in LibPage
, ScriptDocument
, PropBrw
, VBATest
, SbUnoClass
, SbModule
, and SbiSymPool
It is more readable and more efficient as a bonus.
See: https://goo.gl/jsVAwy:
Change-Id: I73926989345193b133e538d5aeca36f12723162c
Reviewed-on: https://gerrit.libreoffice.org/26853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'basctl/source/basicide/scriptdocument.cxx')
-rw-r--r-- | basctl/source/basicide/scriptdocument.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx index 11b7cf1bb8ea..b66f2646f7c1 100644 --- a/basctl/source/basicide/scriptdocument.cxx +++ b/basctl/source/basicide/scriptdocument.cxx @@ -1269,8 +1269,8 @@ namespace basctl sal_Int32 i = 1; while ( !bValid ) { - aObjectName = aBaseName; - aObjectName += OUString::number( i ); + aObjectName = aBaseName + + OUString::number( i ); if ( aUsedNamesCheck.find( aObjectName ) == aUsedNamesCheck.end() ) bValid = true; |