[Libreoffice-commits] .: svl/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Mon Apr 23 12:39:31 PDT 2012


 svl/source/numbers/zforlist.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cf9c715aee2f97a1a6f611fe46a47e238cb03658
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Apr 23 21:39:14 2012 +0200

    Avoid bogus warnings (GCC 4.4.6)

diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 83a1232..93007ab 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 )
         {


More information about the Libreoffice-commits mailing list