diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2018-10-13 19:08:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-13 21:05:33 +0200 |
commit | ad6bf7e72325b7baf36d46512993fbd3cc9b4746 (patch) | |
tree | 93b1274402dcaf003ea3ee6c596645280ac78e48 /vcl/qt5 | |
parent | 6b7819dbe09d5aef3acf20a5acc807afbdcacc20 (diff) |
remove unneeded variable
Change-Id: I5e988effa02891661fb92074db605744fb407261
Reviewed-on: https://gerrit.libreoffice.org/61746
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Graphics_GDI.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |