vcl/skia/gdiimpl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 10ef920e9d2647eb0f6a8565bff21f463ca0cd88
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sun Dec 31 12:30:06 2023 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Sun Dec 31 17:42:15 2023 +0100

    Replace "size() != 0 with !empty()" (vcl)
    
    Change-Id: I33fae6ec7d73cf126d49d384a26b19c68cc68b30
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161490
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index d2bbf345ba28..a09738af4864 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -977,7 +977,7 @@ bool SkiaSalGraphicsImpl::delayDrawPolyPolygon(const 
basegfx::B2DPolyPolygon& aP
     if (!polygonContainsLine(aPolyPolygon))
         return false;
 
-    if (mLastPolyPolygonInfo.polygons.size() != 0
+    if (!mLastPolyPolygonInfo.polygons.empty()
         && (mLastPolyPolygonInfo.transparency != fTransparency
             || 
!mLastPolyPolygonInfo.bounds.overlaps(aPolyPolygon.getB2DRange())))
     {
@@ -1029,7 +1029,7 @@ static void roundPolygonPoints(basegfx::B2DPolyPolygon& 
polyPolygon)
 
 void SkiaSalGraphicsImpl::checkPendingDrawing()
 {
-    if (mLastPolyPolygonInfo.polygons.size() != 0)
+    if (!mLastPolyPolygonInfo.polygons.empty())
     { // Flush any pending polygon drawing.
         basegfx::B2DPolyPolygonVector polygons;
         std::swap(polygons, mLastPolyPolygonInfo.polygons);

Reply via email to