summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-19 16:11:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 07:19:16 +0100
commit19a906f09688f06ee90cac2a50126aeba749a331 (patch)
tree66320878bd537b646f06afdbf2d2409e961f3024 /vcl
parenta7ee3cc31331353d307e4b7aaf7fe88721df6470 (diff)
drop Color::SetColor(ColorData) in favour of operator=
first stage of getting rid of ColorData Change-Id: I5e4e95eb958722814c43c8d1ebfef17ad18c29ec Reviewed-on: https://gerrit.libreoffice.org/49997 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/paint.cxx2
-rw-r--r--vcl/source/window/window.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 7862ced5d018..bb44f1bede5c 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -338,7 +338,7 @@ void RenderTools::DrawSelectionBackground(vcl::RenderContext& rRenderContext, vc
aSelectionFillColor.RGBtoHSB( h, s, b );
if( b > 50 ) b -= 40;
else b += 40;
- aSelectionFillColor.SetColor( Color::HSBtoRGB( h, s, b ) );
+ aSelectionFillColor = Color::HSBtoRGB( h, s, b );
aSelectionBorderColor = aSelectionFillColor;
}
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 0945f881e7e9..1b0495f7147e 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3412,7 +3412,7 @@ void Window::DrawSelectionBackground( const tools::Rectangle& rRect,
aSelectionFillCol.RGBtoHSB( h, s, b );
if( b > 50 ) b -= 40;
else b += 40;
- aSelectionFillCol.SetColor( Color::HSBtoRGB( h, s, b ) );
+ aSelectionFillCol = Color::HSBtoRGB( h, s, b );
aSelectionBorderCol = aSelectionFillCol;
}