From a510f6ba8a5e935b17c5aa6bf5b410bf0fc53ea6 Mon Sep 17 00:00:00 2001 From: "Philipp Lohmann [pl]" Date: Mon, 20 Sep 2010 13:13:18 +0200 Subject: vcl115: #i114425# fix a possible dangling reference (thanks dtardon!) --- forms/source/component/Currency.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx index 89a3b93b4a43..c08d4ea3e36c 100644 --- a/forms/source/component/Currency.cxx +++ b/forms/source/component/Currency.cxx @@ -104,7 +104,8 @@ void OCurrencyModel::implConstruct() try { // get the system international informations - const LocaleDataWrapper& aLocaleInfo = SvtSysLocale().GetLocaleData(); + const SvtSysLocale aSysLocale; + const LocaleDataWrapper& aLocaleInfo = aSysLocale.GetLocaleData(); ::rtl::OUString sCurrencySymbol; sal_Bool bPrependCurrencySymbol; -- cgit v1.2.3