diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-04-23 21:39:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-04-23 21:39:14 +0200 |
commit | cf9c715aee2f97a1a6f611fe46a47e238cb03658 (patch) | |
tree | cb05e88a1d028a4fcff9f18ae1b05ce927215f43 /svl | |
parent | 312e6b06dfeb707887953121b45d136ce45d5001 (diff) |
Avoid bogus warnings (GCC 4.4.6)
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 83a123296a33..93007aba6203 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -1303,7 +1303,7 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultFormat( short nType ) if ( nDefaultFormat == NUMBERFORMAT_ENTRY_NOT_FOUND ) { // look for a defined standard sal_uInt32 nStopKey = CLOffset + SV_COUNTRY_LANGUAGE_OFFSET; - sal_uInt32 nKey; + sal_uInt32 nKey = 0; // avoid bogus warning (GCC 4.4.6) SvNumberFormatTable::iterator it2 = aFTable.find( CLOffset ); while ( it2 != aFTable.end() && (nKey = it2->first ) >= CLOffset && nKey < nStopKey ) { @@ -3326,7 +3326,7 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultCurrencyFormat() { // look for a defined standard sal_uInt32 nStopKey = CLOffset + SV_COUNTRY_LANGUAGE_OFFSET; - sal_uInt32 nKey; + sal_uInt32 nKey = 0; // avoid bogus warning (GCC 4.4.6) SvNumberFormatTable::iterator it2 = aFTable.lower_bound( CLOffset ); while ( it2 != aFTable.end() && (nKey = it2->first) >= CLOffset && nKey < nStopKey ) { |