From 77585439438d9ccfd77534341178a948a575edee Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 31 Dec 2023 12:08:04 +0100 Subject: Replace "size() == 0 with empty()" (chart2) Change-Id: Ia1e082d6cf6db2a3df2b5dd5fc8f13caee529fdd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161465 Tested-by: Jenkins Reviewed-by: Julien Nabet --- chart2/source/view/main/VLegend.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart2') diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx index 8a4935e9b058..72c0165a69f5 100644 --- a/chart2/source/view/main/VLegend.cxx +++ b/chart2/source/view/main/VLegend.cxx @@ -449,7 +449,7 @@ awt::Size lcl_placeLegendEntries( else --nNewLen; } - if (aTextShapes.size() == 0) + if (aTextShapes.empty()) { DrawModelWrapper::removeShape(rEntries[0].xSymbol); rEntries.pop_back(); -- cgit v1.2.3