summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5Graphics_GDI.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-10-13 19:08:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-13 21:05:33 +0200
commitad6bf7e72325b7baf36d46512993fbd3cc9b4746 (patch)
tree93b1274402dcaf003ea3ee6c596645280ac78e48 /vcl/qt5/Qt5Graphics_GDI.cxx
parent6b7819dbe09d5aef3acf20a5acc807afbdcacc20 (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/Qt5Graphics_GDI.cxx')
-rw-r--r--vcl/qt5/Qt5Graphics_GDI.cxx3
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)
{