diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/logging/log_services.cxx | 19 | ||||
-rw-r--r-- | extensions/source/oooimprovecore/oooimprovecore_services.cxx | 11 |
2 files changed, 8 insertions, 22 deletions
diff --git a/extensions/source/logging/log_services.cxx b/extensions/source/logging/log_services.cxx index 9659849d0970..1b3e0e842706 100644 --- a/extensions/source/logging/log_services.cxx +++ b/extensions/source/logging/log_services.cxx @@ -47,19 +47,12 @@ namespace logging static void initializeModule() { - static bool bInitialized( false ); - if ( !bInitialized ) - { - ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); - if ( !bInitialized ) - { - createRegistryInfo_LoggerPool(); - createRegistryInfo_FileHandler(); - createRegistryInfo_ConsoleHandler(); - createRegistryInfo_PlainTextFormatter(); - createRegistryInfo_CsvFormatter(); - } - } + ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); + createRegistryInfo_LoggerPool(); + createRegistryInfo_FileHandler(); + createRegistryInfo_ConsoleHandler(); + createRegistryInfo_PlainTextFormatter(); + createRegistryInfo_CsvFormatter(); } //........................................................................ diff --git a/extensions/source/oooimprovecore/oooimprovecore_services.cxx b/extensions/source/oooimprovecore/oooimprovecore_services.cxx index 6c3a04539e30..0682cdef2947 100644 --- a/extensions/source/oooimprovecore/oooimprovecore_services.cxx +++ b/extensions/source/oooimprovecore/oooimprovecore_services.cxx @@ -37,15 +37,8 @@ namespace oooimprovecore static void initializeModule() { - static bool bInitialized(false); - if (!bInitialized) - { - ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); - if (!bInitialized) - { - createRegistryInfo_Core(); - } - } + ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); + createRegistryInfo_Core(); } } |