diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 15:32:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 15:33:11 +0000 |
commit | b2e84f9a40fda7821d4e658f9102bcbc783a1ba3 (patch) | |
tree | 455193b9d5cf503653c72476f77c2c6267da4800 /sw/inc/swcrsr.hxx | |
parent | 7434fa5bbd051dc4842bc76d33f27e07f10e0053 (diff) |
std::map::erase takes a nonconst iterator
Diffstat (limited to 'sw/inc/swcrsr.hxx')
-rw-r--r-- | sw/inc/swcrsr.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |