diff options
author | Gökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr> | 2016-08-24 14:43:05 +0300 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-26 07:15:34 +0000 |
commit | 674e0f0b43392a7e7fa515dad8427ccc901f7a01 (patch) | |
tree | bc2544d497b2dca7b2f5f8f1fbc704ed5f098b61 /extensions | |
parent | ea9a90d83d92076d41abfd31a1fd3a5d84b6ba92 (diff) |
tdf#100726 - Improve readability of OUString concatanations
Change-Id: I3099818283a9801976288d0efa67a8711106f376
Reviewed-on: https://gerrit.libreoffice.org/28360
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 8 | ||||
-rw-r--r-- | extensions/source/propctrlr/newdatatype.cxx | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 4f9f9ebb5147..e3322ae5e16b 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -384,13 +384,13 @@ namespace pcr // Create new Ids std::unique_ptr<OUString[]> pNewPureIds(new OUString[nNewCount]); - OUString aIdStrBase = aDot; Any aNameAny = m_xComponent->getPropertyValue(PROPERTY_NAME); OUString sControlName; aNameAny >>= sControlName; - aIdStrBase += sControlName; - aIdStrBase += aDot; - aIdStrBase += _rPropertyName; + OUString aIdStrBase = aDot + + sControlName + + aDot + + _rPropertyName; sal_Int32 i; OUString aDummyStr; for ( i = 0; i < nNewCount; ++i ) diff --git a/extensions/source/propctrlr/newdatatype.cxx b/extensions/source/propctrlr/newdatatype.cxx index d7c6d2041971..f2905002eea7 100644 --- a/extensions/source/propctrlr/newdatatype.cxx +++ b/extensions/source/propctrlr/newdatatype.cxx @@ -52,8 +52,7 @@ namespace pcr } } - OUString sNameBase( _rNameBase.copy( 0, nStripUntil ? nStripUntil + 1 : 0 ) ); - sNameBase += " "; + OUString sNameBase = _rNameBase.copy( 0, nStripUntil ? nStripUntil + 1 : 0 ) + " "; OUString sInitialName; sal_Int32 nPostfixNumber = 1; do |