diff options
Diffstat (limited to 'bridges/source/cpp_uno/msvc_win32_intel/except.cxx')
-rw-r--r-- | bridges/source/cpp_uno/msvc_win32_intel/except.cxx | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx index 8e6a1795f898..805eae40e5de 100644 --- a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx @@ -384,15 +384,7 @@ ExceptionInfos::~ExceptionInfos() throw () void * ExceptionInfos::getRaiseInfo( typelib_TypeDescription * pTypeDescr ) throw () { - static ExceptionInfos * s_pInfos = 0; - if (! s_pInfos) - { - MutexGuard aGuard( Mutex::getGlobalMutex() ); - if (! s_pInfos) - { - s_pInfos = new ExceptionInfos(); - } - } + static ExceptionInfos* s_pInfos = new ExceptionInfos(); assert( pTypeDescr && (pTypeDescr->eTypeClass == typelib_TypeClass_STRUCT || @@ -427,15 +419,7 @@ void * ExceptionInfos::getRaiseInfo( typelib_TypeDescription * pTypeDescr ) thro type_info * msci_getRTTI( OUString const & rUNOname ) { - static RTTInfos * s_pRTTIs = 0; - if (! s_pRTTIs) - { - MutexGuard aGuard( Mutex::getGlobalMutex() ); - if (! s_pRTTIs) - { - s_pRTTIs = new RTTInfos(); - } - } + static RTTInfos* s_pRTTIs = new RTTInfos(); return s_pRTTIs->getRTTI( rUNOname ); } |