From 23f755eb475abb16d732b656c9f6db111d60c859 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Mon, 15 Nov 2004 16:23:45 +0000 Subject: 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 --- svtools/source/config/syslocaleoptions.cxx | 13 +++++++++++-- 1 file 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 #endif +#include +#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; } -- cgit