From 6f43f00279252265fe4892b46fe0b4686ff721ed Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 20 Dec 2022 18:02:32 +0200 Subject: No need for bool return value here all of the implementations of this method return true. Change-Id: I6dc02499af1809110edd482a48d9f6d5d42ead19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144620 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/skia/gdiimpl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vcl/skia/gdiimpl.cxx') diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index 896849baefa3..c2c22430dd5a 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -566,10 +566,10 @@ void SkiaSalGraphicsImpl::resetCanvasScalingAndClipping() canvas->restore(); // undo scaling } -bool SkiaSalGraphicsImpl::setClipRegion(const vcl::Region& region) +void SkiaSalGraphicsImpl::setClipRegion(const vcl::Region& region) { if (mClipRegion == region) - return true; + return; SkiaZone zone; checkPendingDrawing(); checkSurface(); @@ -580,7 +580,6 @@ bool SkiaSalGraphicsImpl::setClipRegion(const vcl::Region& region) canvas->restore(); // undo previous clip state, see setCanvasScalingAndClipping() canvas->save(); setCanvasClipRegion(canvas, region); - return true; } void SkiaSalGraphicsImpl::setCanvasClipRegion(SkCanvas* canvas, const vcl::Region& region) -- cgit