diff options
author | Michael Stahl <mst@openoffice.org> | 2010-09-09 19:19:00 +0200 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-09-09 19:19:00 +0200 |
commit | 33b5681d5a96ba9962a1d570e40051ed94b60247 (patch) | |
tree | 6e87e0ae5c7a2c0170f76e9b8b9b9e42c56914d7 /sw/source/ui/utlui/initui.cxx | |
parent | f93e69145f9c5bde1f5232c873aa8bb495ce57b5 (diff) |
sw34bf01: #i114409#: sw: apply patch by dtardon:
prevent deref. of dangling ptr if there is no other instance of
SvtSysLocale hanging around somewhere
Diffstat (limited to 'sw/source/ui/utlui/initui.cxx')
-rw-r--r-- | sw/source/ui/utlui/initui.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/utlui/initui.cxx b/sw/source/ui/utlui/initui.cxx index d40283e39146..75e412a27eb6 100644 --- a/sw/source/ui/utlui/initui.cxx +++ b/sw/source/ui/utlui/initui.cxx @@ -260,7 +260,8 @@ ImpAutoFmtNameListLoader::ImpAutoFmtNameListLoader( SvStringsDtor& rLst ) p->SearchAndReplace(C2S("%1"), C2S(",,")); p->SearchAndReplace(C2S("%2"), C2S("''")); #else - const LocaleDataWrapper& rLclD = SvtSysLocale().GetLocaleData(); + const SvtSysLocale aSysLocale; + const LocaleDataWrapper& rLclD = aSysLocale.GetLocaleData(); //unter richtigen Betriebssystemen funktioniert es auch so p->SearchAndReplace(C2S("%1"), rLclD.getDoubleQuotationMarkStart()); p->SearchAndReplace(C2S("%2"), rLclD.getDoubleQuotationMarkEnd()); |