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 /cui/source | |
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 'cui/source')
-rw-r--r-- | cui/source/dialogs/colorpicker.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/screenshotannotationdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/tplneend.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index 1b07b528665f..6444edaa8b98 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -92,7 +92,7 @@ enum class ColorComponent { static void RGBtoHSV( double dR, double dG, double dB, double& dH, double& dS, double& dV ) { - BColor result = basegfx::tools::rgb2hsv( BColor( dR, dG, dB ) ); + BColor result = basegfx::utils::rgb2hsv( BColor( dR, dG, dB ) ); dH = result.getX(); dS = result.getY(); @@ -101,7 +101,7 @@ static void RGBtoHSV( double dR, double dG, double dB, double& dH, double& dS, d static void HSVtoRGB(double dH, double dS, double dV, double& dR, double& dG, double& dB ) { - BColor result = basegfx::tools::hsv2rgb( BColor( dH, dS, dV ) ); + BColor result = basegfx::utils::hsv2rgb( BColor( dH, dS, dV ) ); dR = result.getRed(); dG = result.getGreen(); diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index caf3c98fc31d..552ed85c72ed 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -446,7 +446,7 @@ void ScreenshotAnnotationDlg_Impl::PaintControlDataEntry( // createPolygonFromRect is relative [0.0 .. 1.0] static double fEdgeRoundPixel(8.0); const basegfx::B2DPolygon aPolygon( - basegfx::tools::createPolygonFromRect( + basegfx::utils::createPolygonFromRect( aB2DRange, fEdgeRoundPixel / aB2DRange.getWidth(), fEdgeRoundPixel / aB2DRange.getHeight())); diff --git a/cui/source/tabpages/tplneend.cxx b/cui/source/tabpages/tplneend.cxx index 9329ea2d8008..16602120c0bf 100644 --- a/cui/source/tabpages/tplneend.cxx +++ b/cui/source/tabpages/tplneend.cxx @@ -408,10 +408,10 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickAddHdl_Impl, Button*, void) } basegfx::B2DPolyPolygon aNewPolyPolygon(static_cast<const SdrPathObj*>(pNewObj)->GetPathPoly()); - basegfx::B2DRange aNewRange(basegfx::tools::getRange(aNewPolyPolygon)); + basegfx::B2DRange aNewRange(basegfx::utils::getRange(aNewPolyPolygon)); // normalize - aNewPolyPolygon.transform(basegfx::tools::createTranslateB2DHomMatrix( -aNewRange.getMinX(), -aNewRange.getMinY())); + aNewPolyPolygon.transform(basegfx::utils::createTranslateB2DHomMatrix( -aNewRange.getMinX(), -aNewRange.getMinY())); SdrObject::Free( pConvPolyObj ); |