diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-11-18 12:41:05 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-11-18 18:38:01 +0100 |
commit | c05595d2420b92a428b45cfaf65a3adf88fd8bed (patch) | |
tree | cbd2c92a6d3bdc170b8c1921556a257626ed0358 /basic | |
parent | 79d9195b954f7a815ddae9562c59fce4dd7c4351 (diff) |
c++20: use std::erase instead of std::removed followed by erase (part 1)
Change-Id: I8d038fc37a4de25bdeff2e2cc55775e3981240b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159610
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sb.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index eeef54222647..8187e6126651 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1074,7 +1074,7 @@ void StarBASIC::Remove( SbxVariable* pVar ) { // #87540 Can be last reference! SbModuleRef xVar = pModule; - pModules.erase(std::remove(pModules.begin(), pModules.end(), xVar)); + std::erase(pModules, xVar); pVar->SetParent( nullptr ); EndListening( pVar->GetBroadcaster() ); } |