diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-02-22 22:22:15 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-02-22 22:22:15 +0100 |
commit | ade3d9852c26f601afd1e6bd7196ec96b18f8465 (patch) | |
tree | 736312e074a93f60d28014b07bdcc674835a0969 /svtools | |
parent | d14a7d01408c85f32b110ada61b94ab8deb9f655 (diff) |
Simplify erase iterator management (calendar.cxx)
Change-Id: Ib8cf14fb6e5a53b954e9d5751f79b908cb3c87aa
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/calendar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index 0ddd26ae5728..c2dc94ab5fd5 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -105,7 +105,7 @@ static void ImplCalendarSelectDateRange( IntDateSet* pTable, break; if ( aDate >= aStartDate ) - pTable->erase( it++ ); + it = pTable->erase(it); else ++it; } @@ -135,7 +135,7 @@ static void ImplCalendarUnSelectDateRange( IntDateSet* pTable, break; if ( aDate >= aStartDate ) - pTable->erase( it++ ); + it = pTable->erase(it); else ++it; } |