diff options
-rw-r--r-- | vcl/inc/dbggui.hxx | 8 | ||||
-rw-r--r-- | vcl/source/app/svmain.cxx | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/vcl/inc/dbggui.hxx b/vcl/inc/dbggui.hxx index 772f3db4c464..1628d1ceef7e 100644 --- a/vcl/inc/dbggui.hxx +++ b/vcl/inc/dbggui.hxx @@ -25,14 +25,6 @@ void DbgGUIInitSolarMutexCheck(); void DbgGUIDeInitSolarMutexCheck(); -#define DBGGUI_INIT_SOLARMUTEXCHECK() DbgGUIInitSolarMutexCheck() -#define DBGGUI_DEINIT_SOLARMUTEXCHECK() DbgGUIDeInitSolarMutexCheck() - -#else - -#define DBGGUI_INIT_SOLARMUTEXCHECK() -#define DBGGUI_DEINIT_SOLARMUTEXCHECK() - #endif #endif // INCLUDED_VCL_INC_DBGGUI_HXX diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 5fdd2687d013..6ca4c07f704d 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -301,7 +301,9 @@ bool InitVCL() // Set exception handler pExceptionHandler = osl_addSignalHandler(VCLExceptionSignal_impl, nullptr); - DBGGUI_INIT_SOLARMUTEXCHECK(); +#ifdef DBG_UTIL + DbgGUIInitSolarMutexCheck(); +#endif #if OSL_DEBUG_LEVEL > 0 DebugEventInjector::getCreate(); @@ -447,7 +449,9 @@ void DeInitVCL() } pSVData->mpDefaultWin.disposeAndClear(); - DBGGUI_DEINIT_SOLARMUTEXCHECK(); +#ifdef DBG_UTIL + DbgGUIDeInitSolarMutexCheck(); +#endif if ( pSVData->mpUnoWrapper ) { |