summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-11-01 13:50:44 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-11-01 13:53:07 -0400
commitfc5a5884386b1c846038ff20e9d645beb9a548a8 (patch)
treea2f21d49e28da14a41deecef3d170697aa728a65
parentd0dbce798b47bb9e728f59f5f93fff8215876ab5 (diff)
Remove unnecessary coping of i18n::Currency2 instance.
Without this, loading Calc fails with segmentation fault on SLED 11 x64 platform. The object is used read-only, so it's perfectly safe to treat it as such.
-rw-r--r--svl/source/numbers/zforlist.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 179a41d33716..57c2b59dff99 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -3446,7 +3446,7 @@ const NfCurrencyEntry* SvNumberFormatter::GetCurrencyEntry( BOOL & bFoundBank,
void SvNumberFormatter::GetCompatibilityCurrency( String& rSymbol, String& rAbbrev ) const
{
- ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Currency2 >
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Currency2 >&
xCurrencies = xLocaleData->getAllCurrencies();
sal_Int32 nCurrencies = xCurrencies.getLength();
sal_Int32 j;