summaryrefslogtreecommitdiff
path: root/svtools/source/config/colorcfg.cxx
diff options
context:
space:
mode:
authorGökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr>2016-08-24 17:41:12 +0300
committerMichael Stahl <mstahl@redhat.com>2016-08-25 14:54:44 +0000
commitb7bf1ba2136b3d1e031673e7b541c6181e95ff61 (patch)
treea246e7d5f9cd1ed2e856a09426a924e4c815285e /svtools/source/config/colorcfg.cxx
parent4d6dc9b84b0afd31a380e71fd53a3bc99d403430 (diff)
tdf#100726 - Improve readability of OUString concatanations
Improved readability of OUString concatanations. Also removed unused OUStrings "sColor" and "sEntry" from the code. Change-Id: Ie9792f499cd880be72229f8a8c71f05ff8e258b6 Reviewed-on: https://gerrit.libreoffice.org/28375 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svtools/source/config/colorcfg.cxx')
-rw-r--r--svtools/source/config/colorcfg.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index 1805465b50e2..f2ae5918c049 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -166,17 +166,16 @@ uno::Sequence< OUString> GetPropertyNames(const OUString& rScheme)
{ RTL_CONSTASCII_USTRINGPARAM("/SQLComment"), false }
};
int nIndex = 0;
- OUString sColor = cColor;
- OUString sBase(cColorSchemes);
- sBase += utl::wrapConfigurationElementName(rScheme);
+ OUString sBase = cColorSchemes
+ + utl::wrapConfigurationElementName(rScheme);
const int nCount = ColorConfigEntryCount;
for(sal_Int32 i = 0; i < 4 * nCount; i+= 4)
{
- OUString sBaseName(sBase);
sal_Int32 nPos = i / 4;
- sBaseName += OUString(cNames[nPos].cName, cNames[nPos].nLength, cNames[nPos].eEncoding);
+ OUString sBaseName = sBase
+ + OUString(cNames[nPos].cName, cNames[nPos].nLength, cNames[nPos].eEncoding);
pNames[nIndex] += sBaseName;
- pNames[nIndex++] += sColor;
+ pNames[nIndex++] += cColor;
if(cNames[nPos].bCanBeVisible)
{
pNames[nIndex] += sBaseName;