[Libreoffice-commits] .: Branch 'libreoffice-3-3' - svl/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Nov 1 13:08:21 PDT 2010


 svl/source/numbers/zforlist.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a3fa25f72a846bef918f927e3adf370c51bdf388
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