summaryrefslogtreecommitdiff
path: root/sw/source/core/fields/docufld.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2009-12-01 17:50:41 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2009-12-01 17:50:41 +0000
commita58c0b022b3fcddcfa033f15dd7588e7ab5a0bd4 (patch)
tree268f0736f1e116a39d223c31235aca845919aafe /sw/source/core/fields/docufld.cxx
parentdb5fc1153a2c913557fac669030a0cc7109365b2 (diff)
parent462617a3de008ca5cb7806622bedbca71c3550fd (diff)
chartshapes: merge with DEV300 m62
Diffstat (limited to 'sw/source/core/fields/docufld.cxx')
-rw-r--r--sw/source/core/fields/docufld.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index 21cb381b4a..d5204f1c1d 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -66,6 +66,7 @@
#endif
#include <svtools/urihelper.hxx>
#include <svtools/useroptions.hxx>
+#include <svtools/syslocale.hxx>
#include <tools/time.hxx>
#include <tools/datetime.hxx>
@@ -931,10 +932,11 @@ SwFieldType* SwDocInfoFieldType::Copy() const
}
void lcl_GetLocalDataWrapper( ULONG nLang,
- LocaleDataWrapper **ppAppLocalData,
- LocaleDataWrapper **ppLocalData )
+ const LocaleDataWrapper **ppAppLocalData,
+ const LocaleDataWrapper **ppLocalData )
{
- *ppAppLocalData = &GetAppLocaleData();
+ SvtSysLocale aLocale;
+ *ppAppLocalData = &aLocale.GetLocaleData();
*ppLocalData = *ppAppLocalData;
if( nLang != SvxLocaleToLanguage( (*ppLocalData)->getLocale() ) )
*ppLocalData = new LocaleDataWrapper(
@@ -949,7 +951,7 @@ String SwDocInfoFieldType::Expand( sal_uInt16 nSub, sal_uInt32 nFormat,
sal_uInt16 nLang, const String& rName ) const
{
String aStr;
- LocaleDataWrapper *pAppLocalData = 0, *pLocalData = 0;
+ const LocaleDataWrapper *pAppLocalData = 0, *pLocalData = 0;
SwDocShell *pDocShell(GetDoc()->GetDocShell());
DBG_ASSERT(pDocShell, "no SwDocShell");
if (!pDocShell) { return aStr; }