diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-09-22 14:12:07 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-09-26 14:18:41 +0200 |
commit | 8e7897588d7185ef1964e8120669c1de3d1ce734 (patch) | |
tree | 8f48598670a5dc22703371943c05789d60b9a07d /tools/source/generic/color.cxx | |
parent | 0b4135ec9945ea627318ecf5fccc4b7d0940ff0d (diff) |
Rename the basegfx::tools namespace to basegfx::utils
Reduce potential confusion with the global tools namespace. Will
hopefully make it possible to remove the annoying initial :: when
referring to the global tools namespace. Unless we have even more
tools subnamespaces somewhere.
Thorsten said it was OK.
Change-Id: Id088dfe8f4244cb79df9aa988995b31a1758c996
Reviewed-on: https://gerrit.libreoffice.org/42644
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'tools/source/generic/color.cxx')
-rw-r--r-- | tools/source/generic/color.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index a58f29e71307..86689502a7c4 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -273,7 +273,7 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent) if (n100thPercent == 0) return; - basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor()); + basegfx::BColor aBColor = basegfx::utils::rgb2hsl(getBColor()); double fFactor = 1.0 - (std::abs(double(n100thPercent)) / 10000.0); double fResult; @@ -287,7 +287,7 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent) } aBColor.setBlue(fResult); - aBColor = basegfx::tools::hsl2rgb(aBColor); + aBColor = basegfx::utils::hsl2rgb(aBColor); SetRed(sal_uInt8(( aBColor.getRed() * 255.0) + 0.5)); SetGreen(sal_uInt8((aBColor.getGreen() * 255.0) + 0.5)); |