diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-21 14:18:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-21 14:19:10 +0200 |
commit | 19277d02fb996058e896725bae7500f356f08af0 (patch) | |
tree | 243a2fc5bbba794f03a865527407304aa2de4554 /svtools | |
parent | bcce27d2832a2b098a42cbbd365df35948b9d0ac (diff) |
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'svtools')
-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 ); |