From 4583911575edf98ccd5b15af8eafa6a3a7b64034 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 21 Jun 2019 12:14:08 +0200 Subject: improve loplugin:simplifyconstruct Change-Id: If863d28c6db470faa0d22273020888d4219e069e Reviewed-on: https://gerrit.libreoffice.org/74559 Tested-by: Jenkins Reviewed-by: Noel Grandin --- drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx | 6 +++--- drawinglayer/source/tools/emfphelperdata.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'drawinglayer') diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx index 76dce81832ba..62ea12db8178 100644 --- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx +++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx @@ -251,7 +251,7 @@ namespace drawinglayer } else { - BitmapEx aExpandVisibilityMask = BitmapEx(aMask, aMask); + BitmapEx aExpandVisibilityMask(aMask, aMask); maVirtualDeviceMask->DrawBitmapEx(rAnimationBitmap.maPositionPixel, aExpandVisibilityMask); } @@ -275,7 +275,7 @@ namespace drawinglayer } else { - BitmapEx aExpandVisibilityMask = BitmapEx(aMask, aMask); + BitmapEx aExpandVisibilityMask(aMask, aMask); maVirtualDeviceMask->DrawBitmapEx(rAnimationBitmap.maPositionPixel, aExpandVisibilityMask); } @@ -284,7 +284,7 @@ namespace drawinglayer case Disposal::Previous: { maVirtualDevice->DrawBitmapEx(rAnimationBitmap.maPositionPixel, rAnimationBitmap.maBitmapEx); - BitmapEx aExpandVisibilityMask = BitmapEx(rAnimationBitmap.maBitmapEx.GetMask(), rAnimationBitmap.maBitmapEx.GetMask()); + BitmapEx aExpandVisibilityMask(rAnimationBitmap.maBitmapEx.GetMask(), rAnimationBitmap.maBitmapEx.GetMask()); maVirtualDeviceMask->DrawBitmapEx(rAnimationBitmap.maPositionPixel, aExpandVisibilityMask); break; } diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index 58cb38dc21c9..d184032ae684 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -493,7 +493,7 @@ namespace emfplushelper // EMF Alpha (1 byte): An 8-bit unsigned integer that specifies the transparency of the background, // ranging from 0 for completely transparent to 0xFF for completely opaque. - const Color color = Color(0xff - (brushIndexOrColor >> 24), (brushIndexOrColor >> 16) & 0xff, (brushIndexOrColor >> 8) & 0xff, brushIndexOrColor & 0xff); + const Color color(0xff - (brushIndexOrColor >> 24), (brushIndexOrColor >> 16) & 0xff, (brushIndexOrColor >> 8) & 0xff, brushIndexOrColor & 0xff); if (color.GetTransparency() < 255) { if (color.GetTransparency() == 0) -- cgit