summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par6.cxx
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 /sw/source/filter/ww8/ww8par6.cxx
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 'sw/source/filter/ww8/ww8par6.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 3142f3441ce2..1c76b54c5d51 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -4750,7 +4750,7 @@ void SwWW8Shade::SetShade(ColorData nFore, ColorData nBack, sal_uInt16 nIndex)
switch (nWW8BrushStyle)
{
case 0: // Null-Brush
- aColor.SetColor( nBack );
+ aColor = nBack;
break;
default:
{
@@ -4764,8 +4764,7 @@ void SwWW8Shade::SetShade(ColorData nFore, ColorData nBack, sal_uInt16 nIndex)
nGreen += aBackColor.GetGreen()* (1000 - nWW8BrushStyle);
nBlue += aBackColor.GetBlue() * (1000 - nWW8BrushStyle);
- aColor.SetColor( RGB_COLORDATA( nRed/1000, nGreen/1000,
- nBlue/1000 ) );
+ aColor = RGB_COLORDATA( nRed/1000, nGreen/1000, nBlue/1000 );
}
break;
}