From f77524954702f52fe3cd3f40edac539f6a7170dc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 8 Oct 2017 12:32:58 +0200 Subject: remove cppcanvas Color class which actually does nothing useful. Looks like it was originally intended to be used to implement color profiles, but since nothing has happened on that front since it was created, safe to say it never will. Probably not the right place in the graphics stack to do it anyhow. Change-Id: I36990db4036e3b4b2b75261fc430028562a6dbd9 Reviewed-on: https://gerrit.libreoffice.org/43240 Tested-by: Jenkins Reviewed-by: Noel Grandin --- slideshow/source/engine/color.cxx | 4 ++-- slideshow/source/engine/tools.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'slideshow/source/engine') diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx index 374508393753..a7a957e7f423 100644 --- a/slideshow/source/engine/color.cxx +++ b/slideshow/source/engine/color.cxx @@ -277,7 +277,7 @@ namespace slideshow { } - RGBColor::RGBColor( ::cppcanvas::Color::IntSRGBA nRGBColor ) : + RGBColor::RGBColor( ::cppcanvas::IntSRGBA nRGBColor ) : maRGBTriple( ::cppcanvas::getRed( nRGBColor ) / 255.0, ::cppcanvas::getGreen( nRGBColor ) / 255.0, ::cppcanvas::getBlue( nRGBColor ) / 255.0 ) @@ -297,7 +297,7 @@ namespace slideshow } - ::cppcanvas::Color::IntSRGBA RGBColor::getIntegerColor() const + ::cppcanvas::IntSRGBA RGBColor::getIntegerColor() const { return ::cppcanvas::makeColor( colorToInt( getRed() ), colorToInt( getGreen() ), diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx index eaac078f459e..db3fbcdfa452 100644 --- a/slideshow/source/engine/tools.cxx +++ b/slideshow/source/engine/tools.cxx @@ -649,7 +649,7 @@ namespace slideshow static_cast< sal_uInt8 >( nColor >> 24U ) ) ); } - sal_Int32 RGBAColor2UnoColor( ::cppcanvas::Color::IntSRGBA aColor ) + sal_Int32 RGBAColor2UnoColor( ::cppcanvas::IntSRGBA aColor ) { return ::cppcanvas::makeColorARGB( // convert from IntSRGBA color to API color @@ -662,7 +662,7 @@ namespace slideshow void fillRect( const ::cppcanvas::CanvasSharedPtr& rCanvas, const ::basegfx::B2DRectangle& rRect, - ::cppcanvas::Color::IntSRGBA aFillColor ) + ::cppcanvas::IntSRGBA aFillColor ) { const ::basegfx::B2DPolygon aPoly( ::basegfx::utils::createPolygonFromRect( rRect )); -- cgit v1.2.3