vcl/qt5/Qt5Graphics_GDI.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit ad6bf7e72325b7baf36d46512993fbd3cc9b4746 Author: Jochen Nitschke <j.nitschke+loger...@ok.de> AuthorDate: Sat Oct 13 19:08:40 2018 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Oct 13 21:05:33 2018 +0200 remove unneeded variable Change-Id: I5e988effa02891661fb92074db605744fb407261 Reviewed-on: https://gerrit.libreoffice.org/61746 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx index f750d1c34ca0..0280f9120baa 100644 --- a/vcl/qt5/Qt5Graphics_GDI.cxx +++ b/vcl/qt5/Qt5Graphics_GDI.cxx @@ -102,8 +102,7 @@ static void AddPolygonToPath(QPainterPath& rPath, const basegfx::B2DPolygon& rPo static bool AddPolyPolygonToPath(QPainterPath& rPath, const basegfx::B2DPolyPolygon& rPolyPoly, bool bPixelSnap, bool bLineDraw) { - const int nPolyCount = rPolyPoly.count(); - if (nPolyCount <= 0) + if (rPolyPoly.count() == 0) return false; for (auto const& rPolygon : rPolyPoly) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits