[Libreoffice-commits] core.git: svl/source
Julien Nabet
serval2412 at yahoo.fr
Sun Feb 22 13:29:48 PST 2015
svl/source/numbers/zforlist.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 46fb44eb44979cec2f29e1e7e1f52042f96b486b
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Feb 22 22:29:19 2015 +0100
Simplify erase iterator management (zforlist.cxx)
Change-Id: Ia3ddb5223d4ac54b9b6b31d734a4cc6978dff3b3
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index c013f8c..2d42ee5 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -380,7 +380,7 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage )
while ( it != aFTable.end() && (nKey = it->first) >= nCLOffset && nKey <= nMaxBuiltin )
{
delete it->second;
- aFTable.erase( it++ );
+ it = aFTable.erase(it);
}
// move additional and user defined to temporary table
@@ -388,7 +388,7 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage )
while ( it != aFTable.end() && (nKey = it->first) >= nCLOffset && nKey < nNextCL )
{
aOldTable[ nKey ] = it->second;
- aFTable.erase( it++ );
+ it = aFTable.erase(it);
}
// generate new old builtin formats
More information about the Libreoffice-commits
mailing list