[Libreoffice-commits] core.git: framework/source
Julien Nabet
serval2412 at yahoo.fr
Mon Aug 26 21:30:02 PDT 2013
framework/source/uielement/togglebuttontoolbarcontroller.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 6ef19375b2a01e69ecd220e09bbc3abf55e34823
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Aug 27 06:29:29 2013 +0200
Bin intermediate iterator
Change-Id: I6401adb29fc3fe4c8b7d420fc9bc325827ec4f21
diff --git a/framework/source/uielement/togglebuttontoolbarcontroller.cxx b/framework/source/uielement/togglebuttontoolbarcontroller.cxx
index 8b7c899..f2aac68 100644
--- a/framework/source/uielement/togglebuttontoolbarcontroller.cxx
+++ b/framework/source/uielement/togglebuttontoolbarcontroller.cxx
@@ -242,9 +242,7 @@ void ToggleButtonToolbarController::executeControlCommand( const ::com::sun::sta
{
if ( nPos < sal_Int32( m_aDropdownMenuList.size() ))
{
- std::vector< OUString >::iterator aIter = m_aDropdownMenuList.begin();
- aIter += nPos;
- m_aDropdownMenuList.erase( aIter );
+ m_aDropdownMenuList.erase(m_aDropdownMenuList.begin() + nPos);
}
}
break;
More information about the Libreoffice-commits
mailing list