diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-11-18 21:22:57 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-11-19 13:41:20 +0100 |
commit | 7ad4641e79169e297a88ee9e62e9be3d74f7124e (patch) | |
tree | c3ea804d27ddac54bf8d9e434be6d7843050ee6a /sc/source/core/tool/dbdata.cxx | |
parent | f566a73adcf170d103b0561c7ea2871596af7142 (diff) |
c++20: use std::erase(_if) instead of std::remove(_if)+erase (part 8)
Change-Id: Ia726fbbfd3f08eb4bb5c7ccaf10d65fe01ca6585
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159639
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/core/tool/dbdata.cxx')
-rw-r--r-- | sc/source/core/tool/dbdata.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index 69e28ca62876..c2096b39c4d1 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -1329,7 +1329,7 @@ const ScDBData* ScDBCollection::AnonDBs::findByRange(const ScRange& rRange) cons void ScDBCollection::AnonDBs::deleteOnTab(SCTAB nTab) { FindByTable func(nTab); - m_DBs.erase(std::remove_if(m_DBs.begin(), m_DBs.end(), func), m_DBs.end()); + std::erase_if(m_DBs, func); } ScDBData* ScDBCollection::AnonDBs::getByRange(const ScRange& rRange) |