summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-15 16:23:45 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-15 16:23:45 +0000
commit23f755eb475abb16d732b656c9f6db111d60c859 (patch)
treebc32a4806eb2f96e5f0976255d78e2c4dcb69f4d
parent912708e7632f2b771da335a7cc3e0f0191d5f0a1 (diff)
INTEGRATION: CWS cd01 (1.12.162); FILE MERGED
2004/11/02 13:19:22 as 1.12.162.1: #i35118# hold some config items alive till config dies
-rw-r--r--svtools/source/config/syslocaleoptions.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svtools/source/config/syslocaleoptions.cxx b/svtools/source/config/syslocaleoptions.cxx
index 040ad451bfab..558075e03b9c 100644
--- a/svtools/source/config/syslocaleoptions.cxx
+++ b/svtools/source/config/syslocaleoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: syslocaleoptions.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hjs $ $Date: 2004-06-25 17:25:24 $
+ * last change: $Author: obo $ $Date: 2004-11-15 17:23:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -111,6 +111,9 @@
#ifndef _SV_SVAPP_HXX
#include <vcl/svapp.hxx>
#endif
+#include <rtl/logfile.hxx>
+#include "itemholder2.hxx"
+
#define CFG_READONLY_DEFAULT sal_False
@@ -498,7 +501,13 @@ SvtSysLocaleOptions::SvtSysLocaleOptions()
{
MutexGuard aGuard( GetMutex() );
if ( !pOptions )
+ {
+ RTL_LOGFILE_CONTEXT(aLog, "svtools (???) ::SvtSysLocaleOptions_Impl::ctor()");
pOptions = new SvtSysLocaleOptions_Impl;
+
+ ItemHolder2* pHolder = ItemHolder2::getGlobalItemHolder();
+ pHolder->holdConfigItem(E_SYSLOCALEOPTIONS);
+ }
++nRefCount;
}