diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-24 13:47:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 07:21:04 +0100 |
commit | 08ab1f46b192a188935fdffbefdc9f3973583cdf (patch) | |
tree | 4c1ecb502f3c3b2a2a8865ea8f84a083b16d310e /svtools/source/hatchwindow | |
parent | 9bc8714308b6f4b85a4c756229ac8b670d009f42 (diff) |
loplugin:oncevar extend to tools/gen.hxx types
Change-Id: I5c75875da44334569c02e2ff039b33c38397a0a2
Reviewed-on: https://gerrit.libreoffice.org/50283
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/hatchwindow')
-rw-r--r-- | svtools/source/hatchwindow/ipwin.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/hatchwindow/ipwin.cxx b/svtools/source/hatchwindow/ipwin.cxx index 9da230d76dbf..20d49a243516 100644 --- a/svtools/source/hatchwindow/ipwin.cxx +++ b/svtools/source/hatchwindow/ipwin.cxx @@ -109,10 +109,8 @@ void SvResizeHelper::Draw(vcl::RenderContext& rRenderContext) { rRenderContext.Push(); rRenderContext.SetMapMode( MapMode() ); - Color aColBlack; - Color aFillColor( COL_LIGHTGRAY ); - rRenderContext.SetFillColor( aFillColor ); + rRenderContext.SetFillColor( COL_LIGHTGRAY ); rRenderContext.SetLineColor(); tools::Rectangle aMoveRects[ 4 ]; @@ -121,7 +119,7 @@ void SvResizeHelper::Draw(vcl::RenderContext& rRenderContext) for (i = 0; i < 4; i++) rRenderContext.DrawRect(aMoveRects[i]); // draw handles - rRenderContext.SetFillColor(aColBlack); + rRenderContext.SetFillColor(Color()); // black tools::Rectangle aRects[ 8 ]; FillHandleRectsPixel(aRects); for (i = 0; i < 8; i++) |