summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2024-01-01 14:59:51 +0100
committerJulien Nabet <serval2412@yahoo.fr>2024-01-01 17:20:18 +0100
commita28b1dfb2dec7ece83280232941d9d2e2b72b557 (patch)
tree51089d57d7c68a49f08a52042ab984dfed54c0fb /sc
parent6c9dda18242bce6a37f7c43277ab4647a70401c8 (diff)
Replace "size() == 0 with empty()" (sc/part2)
Change-Id: I0c87b39bd89825eba5f3c90477ba41eb7e5178ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161517 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/markmulti.cxx2
-rw-r--r--sc/source/ui/view/gridwin4.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/markmulti.cxx b/sc/source/core/data/markmulti.cxx
index 4c92f5f25a47..9cfcd19f8819 100644
--- a/sc/source/core/data/markmulti.cxx
+++ b/sc/source/core/data/markmulti.cxx
@@ -264,7 +264,7 @@ void ScMultiSel::SetMarkArea( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, S
void ScMultiSel::Set( ScRangeList const & rList )
{
Clear();
- if (rList.size() == 0)
+ if (rList.empty())
return;
// sort by row to make the combining/merging faster
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 218c98b12a6c..95ed4d0c7600 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1423,7 +1423,7 @@ void ScGridWindow::SetupInitialPageBreaks(const ScDocument& rDoc, SCTAB nTab)
std::set<SCROW> aRowBreaks;
rDoc.GetAllColBreaks(aColBreaks, nTab, true, false);
rDoc.GetAllRowBreaks(aRowBreaks, nTab, true, false);
- if (aColBreaks.size() == 0 || aRowBreaks.size() == 0)
+ if (aColBreaks.empty() || aRowBreaks.empty())
{
maShowPageBreaksTimer.SetPriority(TaskPriority::DEFAULT_IDLE);
maShowPageBreaksTimer.Start();