drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit 00b2c42a838a95861cbba50bfeedc7afb10ff31c Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Dec 22 09:41:03 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Dec 22 10:44:25 2022 +0000 -Werror,-Wshadow (clang-cl) Change-Id: Ib73b837ea23c2292877e77772ac80ea88f99a713 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144737 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx index 05640481113a..bc9b81daddec 100644 --- a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx @@ -1302,7 +1302,7 @@ void D2DPixelProcessor2D::processMaskPrimitive2DPixel( if (SUCCEEDED(hr)) { ID2D1Layer* pLayer = nullptr; - HRESULT hr = getRenderTarget().CreateLayer(nullptr, &pLayer); + hr = getRenderTarget().CreateLayer(nullptr, &pLayer); if (SUCCEEDED(hr)) { commit 2c6e919854e5a3f9873669d96ac735d1ec670c0d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Dec 22 09:45:36 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Dec 22 10:44:16 2022 +0000 loplugin:redundantfcast (clang-cl) Change-Id: Ie8fab41974392ddd3774b95ddee6c28e41cb5c36 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144739 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx index 13224cd972b6..05640481113a 100644 --- a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx @@ -1629,8 +1629,7 @@ void D2DPixelProcessor2D::processPolygonStrokePrimitive2D( for (auto& value : rStrokeAttribute.getDotDashArray()) { dashes.push_back( - basegfx::B2DVector(rObjectToView * basegfx::B2DVector(value, 0.0)) - .getLength() + (rObjectToView * basegfx::B2DVector(value, 0.0)).getLength() / fDiscreteLineWidth); } }