summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/dialogs/resourcemanager.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmlsecurity/source/dialogs/resourcemanager.cxx b/xmlsecurity/source/dialogs/resourcemanager.cxx
index e989af368b60..00911d180cbf 100644
--- a/xmlsecurity/source/dialogs/resourcemanager.cxx
+++ b/xmlsecurity/source/dialogs/resourcemanager.cxx
@@ -33,7 +33,6 @@ using namespace std;
namespace XmlSec
{
static ResMgr* pResMgr = nullptr;
- static SvtSysLocale* pSysLocale = nullptr;
ResMgr* GetResMgr()
{
@@ -44,9 +43,9 @@ namespace XmlSec
const LocaleDataWrapper& GetLocaleData()
{
- if (!pSysLocale)
- pSysLocale = new SvtSysLocale;
- return pSysLocale->GetLocaleData();
+ static SvtSysLocale ourSysLocale;
+
+ return ourSysLocale.GetLocaleData();
}
DateTime GetDateTime( const css::util::DateTime& _rDT )