vcl/skia/osx/gdiimpl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 81b3619fb59b617cda7335b5d6de32c5abf4e554
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Nov 30 12:13:38 2021 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Nov 30 13:24:10 2021 +0100

    loplugin:simplifyconstruct
    
    Change-Id: I280b668e40d800ecd6eb03ddcda3c2ebd2dd0254
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126114
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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.

Reply via email to