[Libreoffice-commits] core.git: basctl/source

Julien Nabet serval2412 at yahoo.fr
Tue Oct 10 20:58:49 UTC 2017


 basctl/source/dlged/dlgedobj.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ef2e16d1a1e1e551ec99a90c1614f0f67e17b690
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Oct 10 07:24:06 2017 +0200

    Use erase-remove idiom
    
    Change-Id: Ib62b7fd36d6390bf58d98a8213e444109d81aa16
    Reviewed-on: https://gerrit.libreoffice.org/43302
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

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 )


More information about the Libreoffice-commits mailing list