diff options
author | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
commit | 3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch) | |
tree | 504932ee91a0356fba7ea48798887c96867e492f /linden/indra/llui/llresmgr.cpp | |
parent | Second Life viewer sources 1.18.4.3 (diff) | |
download | meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2 meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz |
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to 'linden/indra/llui/llresmgr.cpp')
-rw-r--r-- | linden/indra/llui/llresmgr.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/llui/llresmgr.cpp b/linden/indra/llui/llresmgr.cpp index e77faa9..0e1b9bf 100644 --- a/linden/indra/llui/llresmgr.cpp +++ b/linden/indra/llui/llresmgr.cpp | |||
@@ -247,8 +247,10 @@ char LLResMgr::getMonetaryThousandsSeparator() const | |||
247 | 247 | ||
248 | 248 | ||
249 | // Sets output to a string of integers with monetary separators inserted according to the locale. | 249 | // Sets output to a string of integers with monetary separators inserted according to the locale. |
250 | void LLResMgr::getMonetaryString( LLString& output, S32 input ) const | 250 | std::string LLResMgr::getMonetaryString( S32 input ) const |
251 | { | 251 | { |
252 | std::string output; | ||
253 | |||
252 | LLLocale locale(LLLocale::USER_LOCALE); | 254 | LLLocale locale(LLLocale::USER_LOCALE); |
253 | struct lconv *conv = localeconv(); | 255 | struct lconv *conv = localeconv(); |
254 | 256 | ||
@@ -295,7 +297,6 @@ void LLResMgr::getMonetaryString( LLString& output, S32 input ) const | |||
295 | LLString digits = llformat("%u", abs(input)); | 297 | LLString digits = llformat("%u", abs(input)); |
296 | if( !grouping || !grouping[0] ) | 298 | if( !grouping || !grouping[0] ) |
297 | { | 299 | { |
298 | output.assign("L$"); | ||
299 | if( negative_before ) | 300 | if( negative_before ) |
300 | { | 301 | { |
301 | output.append( negative_sign ); | 302 | output.append( negative_sign ); |
@@ -305,7 +306,7 @@ void LLResMgr::getMonetaryString( LLString& output, S32 input ) const | |||
305 | { | 306 | { |
306 | output.append( negative_sign ); | 307 | output.append( negative_sign ); |
307 | } | 308 | } |
308 | return; | 309 | return output; |
309 | } | 310 | } |
310 | 311 | ||
311 | S32 groupings[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | 312 | S32 groupings[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
@@ -367,7 +368,6 @@ void LLResMgr::getMonetaryString( LLString& output, S32 input ) const | |||
367 | forward_output[ output_pos - 1 - i ] = reversed_output[ i ]; | 368 | forward_output[ output_pos - 1 - i ] = reversed_output[ i ]; |
368 | } | 369 | } |
369 | 370 | ||
370 | output.assign("L$"); | ||
371 | if( negative_before ) | 371 | if( negative_before ) |
372 | { | 372 | { |
373 | output.append( negative_sign ); | 373 | output.append( negative_sign ); |
@@ -377,6 +377,7 @@ void LLResMgr::getMonetaryString( LLString& output, S32 input ) const | |||
377 | { | 377 | { |
378 | output.append( negative_sign ); | 378 | output.append( negative_sign ); |
379 | } | 379 | } |
380 | return output; | ||
380 | } | 381 | } |
381 | 382 | ||
382 | void LLResMgr::getIntegerString( LLString& output, S32 input ) const | 383 | void LLResMgr::getIntegerString( LLString& output, S32 input ) const |