From b2e84f9a40fda7821d4e658f9102bcbc783a1ba3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 23 Nov 2011 15:32:43 +0000 Subject: std::map::erase takes a nonconst iterator --- sw/inc/swcrsr.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/inc/swcrsr.hxx') diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx index f7bb24827935..9bb433a272c3 100644 --- a/sw/inc/swcrsr.hxx +++ b/sw/inc/swcrsr.hxx @@ -283,8 +283,8 @@ public: virtual sal_Bool GotoTable( const String& rName ); void InsertBox( const SwTableBox& rTblBox ); - void DeleteBox( SwSelBoxes::const_iterator it ) { aSelBoxes.erase( it ); bChg = sal_True; } - void DeleteBox( SwSelBoxes::const_iterator itFirst, SwSelBoxes::const_iterator itLast ) { aSelBoxes.erase( itFirst, itLast ); bChg = sal_True; } + void DeleteBox( SwSelBoxes::iterator it ) { aSelBoxes.erase( it ); bChg = sal_True; } + void DeleteBox( SwSelBoxes::iterator itFirst, SwSelBoxes::iterator itLast ) { aSelBoxes.erase( itFirst, itLast ); bChg = sal_True; } void DeleteAllBoxes() { DeleteBox(aSelBoxes.begin(), aSelBoxes.end()); } sal_uInt16 GetBoxesCount() const { return aSelBoxes.size(); } const SwSelBoxes& GetBoxes() const { return aSelBoxes; } -- cgit