diff options
author | Eike Rathke <er@openoffice.org> | 2001-12-05 16:51:01 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-12-05 16:51:01 +0000 |
commit | 4e8f1ac15f8418139bbeb833892238395e76a355 (patch) | |
tree | 30b32cb1fa6e98d54ae7900c7119c87c097145ef /unotools/source | |
parent | 3afc572bbe99b2abe749e0e80562a72bd9cc3b1b (diff) |
#65293# reference to temporary needs l-value
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/i18n/localedatawrapper.cxx | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 7064de82565c..3e187040568c 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: localedatawrapper.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: er $ $Date: 2001-11-12 18:52:39 $ + * last change: $Author: er $ $Date: 2001-12-05 17:51:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -725,7 +725,10 @@ void LocaleDataWrapper::getCurrSymbolsImpl() } if ( nElem >= nCnt ) { - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "getCurrSymbolsImpl: no default currency" ) ) ).GetBuffer() ); +#ifndef PRODUCT + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "getCurrSymbolsImpl: no default currency" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); +#endif nElem = 0; if ( nElem >= nCnt ) { @@ -831,7 +834,10 @@ void LocaleDataWrapper::getCurrFormatsImpl() sal_Int32 nCnt = aFormatSeq.getLength(); if ( !nCnt ) { // bad luck - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "getCurrFormatsImpl: no currency formats" ) ) ).GetBuffer() ); +#ifndef PRODUCT + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "getCurrFormatsImpl: no currency formats" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); +#endif nCurrPositiveFormat = nCurrNegativeFormat = nCurrFormatDefault; return ; } @@ -878,7 +884,8 @@ void LocaleDataWrapper::getCurrFormatsImpl() #ifndef PRODUCT if ( nNum == STRING_NOTFOUND || nSym == STRING_NOTFOUND ) { - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "getCurrFormatsImpl: CurrPositiveFormat?" ) ) ).GetBuffer() ); + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "getCurrFormatsImpl: CurrPositiveFormat?" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); } #endif if ( nBlank == STRING_NOTFOUND ) @@ -908,7 +915,8 @@ void LocaleDataWrapper::getCurrFormatsImpl() if ( nNum == STRING_NOTFOUND || nSym == STRING_NOTFOUND || (nPar == STRING_NOTFOUND && nSign == STRING_NOTFOUND) ) { - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "getCurrFormatsImpl: CurrNegativeFormat?" ) ) ).GetBuffer() ); + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "getCurrFormatsImpl: CurrNegativeFormat?" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); } #endif if ( nBlank == STRING_NOTFOUND ) @@ -1041,7 +1049,10 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const String& rCode ) } if ( nDay == STRING_NOTFOUND || nMonth == STRING_NOTFOUND || nYear == STRING_NOTFOUND ) { - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "scanDateFormat: not all DMY present" ) ) ).GetBuffer() ); +#ifndef PRODUCT + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "scanDateFormat: not all DMY present" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); +#endif if ( nDay == STRING_NOTFOUND ) nDay = rCode.Len(); if ( nMonth == STRING_NOTFOUND ) @@ -1059,7 +1070,10 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const String& rCode ) return YMD; else { - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "scanDateFormat: no magic applyable" ) ) ).GetBuffer() ); +#ifndef PRODUCT + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "scanDateFormat: no magic applyable" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); +#endif return DMY; } } @@ -1073,7 +1087,10 @@ void LocaleDataWrapper::getDateFormatsImpl() sal_Int32 nCnt = aFormatSeq.getLength(); if ( !nCnt ) { // bad luck - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "getDateFormatsImpl: no date formats" ) ) ).GetBuffer() ); +#ifndef PRODUCT + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "getDateFormatsImpl: no date formats" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); +#endif nDateFormat = nLongDateFormat = DMY; return ; } @@ -1110,7 +1127,10 @@ void LocaleDataWrapper::getDateFormatsImpl() } if ( nDef == -1 ) { - DBG_ERRORFILE( AppendLocaleInfo( ByteString( RTL_CONSTASCII_STRINGPARAM( "getDateFormatsImpl: no default" ) ) ).GetBuffer() ); +#ifndef PRODUCT + ByteString aMsg( RTL_CONSTASCII_STRINGPARAM( "getDateFormatsImpl: no default" ) ); + DBG_ERRORFILE( AppendLocaleInfo( aMsg ).GetBuffer() ); +#endif if ( nMedium != -1 ) nDef = nMedium; else if ( nLong != -1 ) |