[Libreoffice-commits] .: svl/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Nov 1 10:53:19 PDT 2010
svl/source/numbers/zforlist.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 624fa9a6af03d60e1b3f7efb394c16ff26903bff
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Mon Nov 1 13:50:44 2010 -0400
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.
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index f4e7939..4f90d03 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;
More information about the Libreoffice-commits
mailing list