[Libreoffice-commits] .: dbaccess/source
Thomas Arnhold
tarnhold at kemper.freedesktop.org
Wed Feb 9 12:00:41 PST 2011
dbaccess/source/ext/macromigration/dbmm_services.cxx | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
New commits:
commit e033d877e34a72c1252795d15d522487835f636a
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Wed Feb 9 21:00:13 2011 +0100
Remove static if-statement
diff --git a/dbaccess/source/ext/macromigration/dbmm_services.cxx b/dbaccess/source/ext/macromigration/dbmm_services.cxx
index 998db95..b93ac54 100644
--- a/dbaccess/source/ext/macromigration/dbmm_services.cxx
+++ b/dbaccess/source/ext/macromigration/dbmm_services.cxx
@@ -41,15 +41,8 @@ namespace dbmm
static void initializeModule()
{
- static bool bInitialized( false );
- if ( !bInitialized )
- {
- ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
- if ( !bInitialized )
- {
- createRegistryInfo_MacroMigrationDialogService();
- }
- }
+ ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
+ createRegistryInfo_MacroMigrationDialogService();
}
//........................................................................
More information about the Libreoffice-commits
mailing list