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 /connectivity/source/drivers/mozab/mozillasrc | |
parent | bcce27d2832a2b098a42cbbd365df35948b9d0ac (diff) |
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'connectivity/source/drivers/mozab/mozillasrc')
3 files changed, 6 insertions, 3 deletions
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx index a7783c956df9..039db52576f5 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx @@ -24,6 +24,7 @@ #include "MQuery.hxx" #include <osl/mutex.hxx> #include <osl/conditn.hxx> +#include <osl/thread.hxx> #include "pre_include_mozilla.h" #include <nsIProxyObjectManager.h> @@ -60,7 +61,7 @@ MNSMozabProxy::MNSMozabProxy() { m_Args = NULL; #if OSL_DEBUG_LEVEL > 0 - m_oThreadID = osl_getThreadIdentifier(NULL); + m_oThreadID = osl::Thread::getCurrentIdentifier(); #endif acquire(); } diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx index fb274ccccaea..3a618fa8c62a 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx @@ -29,6 +29,7 @@ #include <com/sun/star/uno/Reference.hxx> #include <comphelper/processfactory.hxx> #include <com/sun/star/mozilla/XMozillaBootstrap.hpp> +#include <osl/thread.hxx> #if OSL_DEBUG_LEVEL > 0 # define OUtoCStr( x ) ( OUStringToOString ( (x), RTL_TEXTENCODING_ASCII_US).getStr()) @@ -73,7 +74,7 @@ MQuery::MQuery( const OColumnAlias& _ca ) construct(); #if OSL_DEBUG_LEVEL > 0 - m_oThreadID = osl_getThreadIdentifier(NULL); + m_oThreadID = osl::Thread::getCurrentIdentifier(); #endif OSL_TRACE( "\tOUT MQuery::MQuery( ca )" ); diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx index 71ff4f07fb9c..6ef6759e2bbb 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx @@ -25,6 +25,7 @@ #include "MLdapAttributeMap.hxx" #include <connectivity/dbexception.hxx> +#include <osl/thread.hxx> #include "resource/mozab_res.hrc" @@ -95,7 +96,7 @@ MQueryHelper::MQueryHelper() { m_aResults.clear(); #if OSL_DEBUG_LEVEL > 0 - m_oThreadID = osl_getThreadIdentifier(NULL); + m_oThreadID = osl::Thread::getCurrentIdentifier(); #endif } |