sc/source/core/data/markmulti.cxx | 2 +- sc/source/ui/view/gridwin4.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit a28b1dfb2dec7ece83280232941d9d2e2b72b557 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Mon Jan 1 14:59:51 2024 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Mon Jan 1 17:20:18 2024 +0100 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 <serval2...@yahoo.fr> 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();