[Libreoffice-commits] core.git: svtools/source
Julien Nabet
serval2412 at yahoo.fr
Sun Feb 22 13:22:50 PST 2015
svtools/source/control/calendar.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ade3d9852c26f601afd1e6bd7196ec96b18f8465
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Feb 22 22:22:15 2015 +0100
Simplify erase iterator management (calendar.cxx)
Change-Id: Ib8cf14fb6e5a53b954e9d5751f79b908cb3c87aa
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 0ddd26a..c2dc94a 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;
}
More information about the Libreoffice-commits
mailing list