summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-11-30 12:13:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-11-30 13:24:10 +0100
commit81b3619fb59b617cda7335b5d6de32c5abf4e554 (patch)
treee7a74da2965cefd5488ae658c65269c7dd3fe96a /vcl
parent75a1a63108d39eab905058d1bd295b74ecf34663 (diff)
loplugin:simplifyconstruct
Change-Id: I280b668e40d800ecd6eb03ddcda3c2ebd2dd0254 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126114 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/skia/osx/gdiimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/skia/osx/gdiimpl.cxx b/vcl/skia/osx/gdiimpl.cxx
index 126f43bb6ac3..643b38b52557 100644
--- a/vcl/skia/osx/gdiimpl.cxx
+++ b/vcl/skia/osx/gdiimpl.cxx
@@ -214,10 +214,10 @@ bool AquaSkiaSalGraphicsImpl::drawNativeControl(ControlType nType, ControlPart n
// Setup context state for drawing (performDrawNativeControl() e.g. fills background in some cases).
CGContextSetFillColorSpace(context, GetSalData()->mxRGBSpace);
CGContextSetStrokeColorSpace(context, GetSalData()->mxRGBSpace);
- RGBAColor lineColor = RGBAColor(mLineColor);
+ RGBAColor lineColor(mLineColor);
CGContextSetRGBStrokeColor(context, lineColor.GetRed(), lineColor.GetGreen(),
lineColor.GetBlue(), lineColor.GetAlpha());
- RGBAColor fillColor = RGBAColor(mFillColor);
+ RGBAColor fillColor(mFillColor);
CGContextSetRGBFillColor(context, fillColor.GetRed(), fillColor.GetGreen(), fillColor.GetBlue(),
fillColor.GetAlpha());
// Adjust for our drawn-to coordinates in the bitmap.