diff options
Diffstat (limited to 'svtools/source/hatchwindow/documentcloser.cxx')
-rw-r--r-- | svtools/source/hatchwindow/documentcloser.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/hatchwindow/documentcloser.cxx b/svtools/source/hatchwindow/documentcloser.cxx index c35fd3f608cd..e0de3c2ed98a 100644 --- a/svtools/source/hatchwindow/documentcloser.cxx +++ b/svtools/source/hatchwindow/documentcloser.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/awt/XVclWindowPeer.hpp> #include <comphelper/processfactory.hxx> #include <osl/mutex.hxx> +#include <osl/thread.hxx> #include <vcl/svapp.hxx> #include <vcl/dialog.hxx> #include <tools/link.hxx> @@ -58,7 +59,7 @@ void MainThreadFrameCloserRequest::Start( MainThreadFrameCloserRequest* pMTReque { if ( pMTRequest ) { - if ( Application::GetMainThreadIdentifier() == osl_getThreadIdentifier( NULL ) ) + if ( Application::GetMainThreadIdentifier() == osl::Thread::getCurrentIdentifier() ) { // this is the main thread worker( NULL, pMTRequest ); |