diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 13:30:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 11:28:29 +0100 |
commit | c98d3303027bd8bf8e0881b61918710ac479864c (patch) | |
tree | e6843dfd93352f134207cbc482451e8f17266bc2 /cui/source/options/optcolor.cxx | |
parent | 44a485c2baaf5bab81748f992915459bdaa58615 (diff) |
replace Color(COL_*) with COL_*
using
git grep -lwP "Color\s*\(\s*(COL_\w+)\s*\)"
| xargs perl -pi -e "s/Color\s*\(\s*(COL_\w+)\s*\)//g"
and then some manual fixup where the resulting expression no longer
compiled
Change-Id: I0e268d78611c3be40bba9f60ecfdc087a36c0df4
Reviewed-on: https://gerrit.libreoffice.org/50372
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/options/optcolor.cxx')
-rw-r--r-- | cui/source/options/optcolor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index f4312f67cc22..9bb88e7c412b 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -412,7 +412,7 @@ void ColorConfigWindow_Impl::Entry::Update ( ) { Color aColor(rValue.getColor()); if (rValue.getColor() == rValue.getDefaultColor()) - m_pColorList->SelectEntry(Color(COL_AUTO)); + m_pColorList->SelectEntry(COL_AUTO); else m_pColorList->SelectEntry(aColor); } @@ -549,7 +549,7 @@ void ColorConfigWindow_Impl::SetAppearance () Wallpaper const aTransparentWall(COL_TRANSPARENT); StyleSettings const& rStyleSettings = GetSettings().GetStyleSettings(); Color const aBackColor = rStyleSettings.GetHighContrastMode() ? - rStyleSettings.GetShadowColor() : Color(COL_LIGHTGRAY); + rStyleSettings.GetShadowColor() : COL_LIGHTGRAY; Wallpaper const aBackWall(aBackColor); for (size_t i = 0; i != vChapters.size(); ++i) vChapters[i]->Show(aBackWall); @@ -565,7 +565,7 @@ void ColorConfigWindow_Impl::SetAppearance () aRCheckCol.Invert(); // if inversion didn't work (gray) then it's set to black if (aRCheckCol == aWinCol) - aRCheckCol = Color(COL_BLACK); + aRCheckCol = COL_BLACK; // setting new text color for each entry for (size_t i = 0; i != vEntries.size(); ++i) vEntries[i]->SetTextColor(aRCheckCol); |