diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-31 12:30:06 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-31 17:42:15 +0100 |
commit | 10ef920e9d2647eb0f6a8565bff21f463ca0cd88 (patch) | |
tree | b2a40af6beb3f9774436e2231a68caf13e924de9 /vcl/skia | |
parent | d6b1e5631ef936479cec6a3e5496e447c78279a7 (diff) |
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 <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/skia')
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); |