diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-10 07:24:06 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-10 22:58:28 +0200 |
commit | ef2e16d1a1e1e551ec99a90c1614f0f67e17b690 (patch) | |
tree | 33c0fd95c8a3dc6e4f25e2233355491e241421da /basctl | |
parent | c95221f151fbaab5f181bb5f8a5428a380d4d1bf (diff) |
Use erase-remove idiom
Change-Id: Ib62b7fd36d6390bf58d98a8213e444109d81aa16
Reviewed-on: https://gerrit.libreoffice.org/43302
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/dlged/dlgedobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx index b313807dcb9f..2590dc74362f 100644 --- a/basctl/source/dlged/dlgedobj.cxx +++ b/basctl/source/dlged/dlgedobj.cxx @@ -1262,7 +1262,7 @@ void DlgEdForm::AddChild( DlgEdObj* pDlgEdObj ) void DlgEdForm::RemoveChild( DlgEdObj* pDlgEdObj ) { - pChildren.erase( std::find( pChildren.begin() , pChildren.end() , pDlgEdObj ) ); + pChildren.erase( std::remove( pChildren.begin() , pChildren.end() , pDlgEdObj ) ); } void DlgEdForm::PositionAndSizeChange( const beans::PropertyChangeEvent& evt ) |