summaryrefslogtreecommitdiff
path: root/vcl/source/helper/lazydelete.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/helper/lazydelete.cxx')
-rw-r--r--vcl/source/helper/lazydelete.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/helper/lazydelete.cxx b/vcl/source/helper/lazydelete.cxx
index 6d39e9765c28..af1f9fcb3308 100644
--- a/vcl/source/helper/lazydelete.cxx
+++ b/vcl/source/helper/lazydelete.cxx
@@ -29,7 +29,7 @@ DeleteOnDeinitBase::~DeleteOnDeinitBase()
if (!pSVData)
return;
auto& rList = pSVData->maDeinitDeleteList;
- rList.erase(std::remove(rList.begin(), rList.end(), this), rList.end());
+ std::erase(rList, this);
}
void DeleteOnDeinitBase::addDeinitContainer(DeleteOnDeinitBase* i_pContainer)