Bin intermediate iterator

Change-Id: I6401adb29fc3fe4c8b7d420fc9bc325827ec4f21
This commit is contained in:
Julien Nabet
2013-08-27 06:29:29 +02:00
parent ea12c1f1de
commit 6ef19375b2

View File

@@ -242,9 +242,7 @@ void ToggleButtonToolbarController::executeControlCommand( const ::com::sun::sta
{ {
if ( nPos < sal_Int32( m_aDropdownMenuList.size() )) if ( nPos < sal_Int32( m_aDropdownMenuList.size() ))
{ {
std::vector< OUString >::iterator aIter = m_aDropdownMenuList.begin(); m_aDropdownMenuList.erase(m_aDropdownMenuList.begin() + nPos);
aIter += nPos;
m_aDropdownMenuList.erase( aIter );
} }
} }
break; break;