[Libreoffice-commits] .: svl/source

Olivier Hallot ohallot at kemper.freedesktop.org
Tue Jul 3 19:24:33 PDT 2012


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

New commits:
commit 7f5f50052df9222dd3bb0908cff7d864859ae213
Author: Olivier Hallot <olivier.hallot at alta.org.br>
Date:   Tue Jul 3 23:22:25 2012 -0300

    Make windows tinderbox happy
    
    fix some cast for OUString
    
    Change-Id: I20563d404169b9e1f29699d52567760509fabb13

diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 934a043..368a022 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -949,7 +949,7 @@ sal_uInt32 SvNumberFormatter::ImpGenerateCL( LanguageType eLnge, bool bNoAdditio
                     if ( !aDupes.isEmpty() )
                     {
                         rtl::OUString aMsg("XML locale data FormatElement formatindex dupe: ");
-                        aMsg += rtl::OUString::valueOf( nIdx );
+                        aMsg += rtl::OUString::valueOf( sal_Int32(nIdx) );
                         aMsg += "\nFormatElements: ";
                         aMsg += rtl::OUString::valueOf( j );
                         aMsg += "(";
@@ -1740,7 +1740,7 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
                     rCode.Index != NF_CURRENCY_1000DEC2_CCC )
             {
                 rtl::OUString aMsg("SvNumberFormatter::ImpInsertFormat: no [$...] on currency format code, index ");
-                aMsg += rtl::OUString::valueOf( rCode.Index );
+                aMsg += rtl::OUString::valueOf( sal_Int32(rCode.Index) );
                 aMsg += ":\n";
                 aMsg += rCode.Code;
                 LocaleDataWrapper::outputCheckMessage( xLocaleData->appendLocaleInfo( aMsg));
@@ -1758,7 +1758,7 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
         if (LocaleDataWrapper::areChecksEnabled())
         {
             rtl::OUString aMsg( "SvNumberFormatter::ImpInsertFormat: bad format code, index " );
-            aMsg += rtl::OUString::valueOf( rCode.Index );
+            aMsg += rtl::OUString::valueOf( sal_Int32(rCode.Index) );
             aMsg += "\n";
             aMsg += rCode.Code;
             LocaleDataWrapper::outputCheckMessage( xLocaleData->appendLocaleInfo( aMsg));
@@ -1788,7 +1788,7 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
                     default:
                     {
                         rtl::OUString aMsg("SvNumberFormatter::ImpInsertFormat: dup format code, index ");
-                        aMsg += rtl::OUString::valueOf( rCode.Index );
+                        aMsg += rtl::OUString::valueOf( sal_Int32(rCode.Index) );
                         aMsg += "\n";
                         aMsg += rCode.Code;
                         LocaleDataWrapper::outputCheckMessage( xLocaleData->appendLocaleInfo( aMsg));
@@ -1803,7 +1803,7 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
             if (LocaleDataWrapper::areChecksEnabled())
             {
                 rtl::OUString aMsg( "SvNumberFormatter::ImpInsertFormat: too many format codes, index ");
-                aMsg += rtl::OUString::valueOf( rCode.Index );
+                aMsg += rtl::OUString::valueOf( sal_Int32(rCode.Index) );
                 aMsg += "\n";
                 aMsg +=  rCode.Code;
                 LocaleDataWrapper::outputCheckMessage( xLocaleData->appendLocaleInfo( aMsg));
@@ -1819,7 +1819,7 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
             rtl::OUString aMsg( "ImpInsertFormat: can't insert number format key pos: ");
             aMsg += rtl::OUString::valueOf( sal_Int32( nPos ) );
             aMsg += ", code index ";
-            aMsg += rtl::OUString::valueOf( rCode.Index );
+            aMsg += rtl::OUString::valueOf( sal_Int32(rCode.Index) );
             aMsg += "\n";
             aMsg += rCode.Code;
             LocaleDataWrapper::outputCheckMessage( xLocaleData->appendLocaleInfo( aMsg));


More information about the Libreoffice-commits mailing list