svx/source/tbxctrls/PaletteManager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7bf2b0f13d8e6b97f423e8d859f7927247442837 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Aug 31 11:45:33 2016 +0200 loplugin:stringconstant Change-Id: Id7ccf94640fa67c5143ebc14bc210ff764efca75 diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx index c65c7c7..13f53a5 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); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits