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/qt5/QtGraphics_GDI.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl/qt5') diff --git a/vcl/qt5/QtGraphics_GDI.cxx b/vcl/qt5/QtGraphics_GDI.cxx index 6849a3bc7bde..832f8a09eb2f 100644 --- a/vcl/qt5/QtGraphics_GDI.cxx +++ b/vcl/qt5/QtGraphics_GDI.cxx @@ -125,7 +125,7 @@ static bool AddPolyPolygonToPath(QPainterPath& rPath, const basegfx::B2DPolyPoly return true; } -bool QtGraphicsBackend::setClipRegion(const vcl::Region& rRegion) +void QtGraphicsBackend::setClipRegion(const vcl::Region& rRegion) { if (rRegion.IsRectangle()) { @@ -162,7 +162,6 @@ bool QtGraphicsBackend::setClipRegion(const vcl::Region& rRegion) m_aClipRegion.swap(aRegion); } } - return true; } void QtGraphicsBackend::ResetClipRegion() -- cgit