From f317119be32071e9ef82f3d8ff53170a5456ea0c Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 25 Jul 2012 16:21:05 +0200 Subject: sorted_vector: MSVC doesn't know which erase to call Change-Id: Ib81388db2f93db662bb5439565f311835b08073e --- cui/source/tabpages/autocdlg.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cui') diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index b2923f809bcd..b770c8c19341 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -1540,7 +1540,7 @@ sal_Bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet& ) if( !lcl_FindInArray(rArrays.aDoubleCapsStrings, *pString)) { delete (*pWrdList)[ i ]; - pWrdList->erase( pWrdList->begin() + i ); + pWrdList->erase(i); } } @@ -1565,7 +1565,7 @@ sal_Bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet& ) if( !lcl_FindInArray(rArrays.aAbbrevStrings, *pString)) { delete (*pCplList)[ i ]; - pCplList->erase( pCplList->begin() + i ); + pCplList->erase(i); } } @@ -1594,7 +1594,7 @@ sal_Bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet& ) if( USHRT_MAX == aDoubleCapsLB.GetEntryPos(*pString) ) { delete (*pWrdList)[ i ]; - pWrdList->erase( pWrdList->begin() + i ); + pWrdList->erase(i); } } nCount = aDoubleCapsLB.GetEntryCount(); @@ -1619,7 +1619,7 @@ sal_Bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet& ) if( USHRT_MAX == aAbbrevLB.GetEntryPos(*pString) ) { delete (*pCplList)[ i ]; - pCplList->erase( pCplList->begin() + i ); + pCplList->erase(i); } } nCount = aAbbrevLB.GetEntryCount(); -- cgit