[Libreoffice-commits] core.git: vcl/qt5

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Oct 13 19:05:55 UTC 2018


 vcl/qt5/Qt5Graphics_GDI.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ad6bf7e72325b7baf36d46512993fbd3cc9b4746
Author:     Jochen Nitschke <j.nitschke+logerrit at ok.de>
AuthorDate: Sat Oct 13 19:08:40 2018 +0200
Commit:     Noel Grandin <noel.grandin at 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.grandin at 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)
     {


More information about the Libreoffice-commits mailing list