diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-02-22 22:29:19 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-02-22 22:29:19 +0100 |
commit | 46fb44eb44979cec2f29e1e7e1f52042f96b486b (patch) | |
tree | bf3ca4ccc966b33cf5d96b99ff55d4bdff0baded /svl | |
parent | ade3d9852c26f601afd1e6bd7196ec96b18f8465 (diff) |
Simplify erase iterator management (zforlist.cxx)
Change-Id: Ia3ddb5223d4ac54b9b6b31d734a4cc6978dff3b3
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index c013f8ce7620..2d42ee50ea4e 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 |