summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/PaletteManager.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-31 11:45:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-31 11:45:33 +0200
commit7bf2b0f13d8e6b97f423e8d859f7927247442837 (patch)
tree56a0bebaddaf70fafa42d39cbcbacc5ec8e089f3 /svx/source/tbxctrls/PaletteManager.cxx
parentecafca50e9a6d0fac3c809f275342f571a1470df (diff)
loplugin:stringconstant
Change-Id: Id7ccf94640fa67c5143ebc14bc210ff764efca75
Diffstat (limited to 'svx/source/tbxctrls/PaletteManager.cxx')
-rw-r--r--svx/source/tbxctrls/PaletteManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx
index c65c7c720f6b..13f53a5f67a3 100644
--- a/svx/source/tbxctrls/PaletteManager.cxx
+++ b/svx/source/tbxctrls/PaletteManager.cxx
@@ -159,7 +159,7 @@ void PaletteManager::ReloadRecentColorSet(SvxColorValueSet& rColorSet)
for (int i = 0; i < Colorlist.getLength(); ++i)
{
Color aColor(Colorlist[i]);
- OUString sColorName = bHasColorNames ? ColorNamelist[i] : (OUString("#") + aColor.AsRGBHexString().toAsciiUpperCase());
+ OUString sColorName = bHasColorNames ? ColorNamelist[i] : ("#" + aColor.AsRGBHexString().toAsciiUpperCase());
maRecentColors.push_back(std::make_pair(aColor, sColorName));
rColorSet.InsertItem(nIx, aColor, sColorName);
++nIx;
@@ -300,7 +300,7 @@ void PaletteManager::PopupColorPicker(const OUString& aCommand)
if (mpBtnUpdater)
mpBtnUpdater->Update( aColorDlg.GetColor() );
mLastColor = aColorDlg.GetColor();
- AddRecentColor(mLastColor, (OUString("#") + mLastColor.AsRGBHexString().toAsciiUpperCase()));
+ AddRecentColor(mLastColor, ("#" + mLastColor.AsRGBHexString().toAsciiUpperCase()));
maColorSelectFunction(aCommandCopy, mLastColor);
}
}