From 10ef920e9d2647eb0f6a8565bff21f463ca0cd88 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 31 Dec 2023 12:30:06 +0100 Subject: 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 --- vcl/skia/gdiimpl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/skia') 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); -- cgit