summaryrefslogtreecommitdiffstats
path: root/forms
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-07 12:10:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-07 12:10:24 +0100
commitf791a7ba711f68843779b5929f15cec611b8c545 (patch)
tree2519828b7ecc21b2a8ff2432e88f305cae9dccb6 /forms
parentWebservice URLs now point to documentfoundation (diff)
downloadcore-f791a7ba711f68843779b5929f15cec611b8c545.tar.gz
core-f791a7ba711f68843779b5929f15cec611b8c545.zip
#i114425# fix a possible dangling reference
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/Currency.cxx3
1 files changed, 2 insertions, 1 deletions
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;