summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-09-22 14:12:07 +0300
committerTor Lillqvist <tml@collabora.com>2017-09-26 14:18:41 +0200
commit8e7897588d7185ef1964e8120669c1de3d1ce734 (patch)
tree8f48598670a5dc22703371943c05789d60b9a07d /editeng
parent0b4135ec9945ea627318ecf5fccc4b7d0940ff0d (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 'editeng')
-rw-r--r--editeng/source/items/borderline.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx
index caa86bcce036..41b8eae938a3 100644
--- a/editeng/source/items/borderline.cxx
+++ b/editeng/source/items/borderline.cxx
@@ -33,7 +33,7 @@ namespace {
Color lcl_compute3DColor( Color aMain, int nLight, int nMedium, int nDark )
{
basegfx::BColor color = aMain.getBColor( );
- basegfx::BColor hsl = basegfx::tools::rgb2hsl( color );
+ basegfx::BColor hsl = basegfx::utils::rgb2hsl( color );
int nCoef = 0;
if ( hsl.getZ( ) >= 0.5 )
@@ -45,7 +45,7 @@ namespace {
double L = hsl.getZ() * 255.0 + nCoef;
hsl.setZ( L / 255.0 );
- color = basegfx::tools::hsl2rgb( hsl );
+ color = basegfx::utils::hsl2rgb( hsl );
return Color( color );
}
@@ -63,9 +63,9 @@ Color SvxBorderLine::lightColor( Color aMain )
// Divide Luminance by 2
basegfx::BColor color = aMain.getBColor( );
- basegfx::BColor hsl = basegfx::tools::rgb2hsl( color );
+ basegfx::BColor hsl = basegfx::utils::rgb2hsl( color );
hsl.setZ( hsl.getZ() * 0.5 );
- color = basegfx::tools::hsl2rgb( hsl );
+ color = basegfx::utils::hsl2rgb( hsl );
return Color( color );
}