From 19277d02fb996058e896725bae7500f356f08af0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 21 Aug 2013 14:18:40 +0200 Subject: osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier() Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44 --- cppu/source/uno/EnvStack.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cppu/source/uno/EnvStack.cxx') diff --git a/cppu/source/uno/EnvStack.cxx b/cppu/source/uno/EnvStack.cxx index 22d7bd992909..59da613a0623 100644 --- a/cppu/source/uno/EnvStack.cxx +++ b/cppu/source/uno/EnvStack.cxx @@ -25,6 +25,7 @@ #include "rtl/instance.hxx" #include "osl/thread.h" +#include "osl/thread.hxx" #include "osl/mutex.hxx" #include @@ -69,7 +70,7 @@ namespace static void s_setCurrent(uno_Environment * pEnv) { - oslThreadIdentifier threadId = osl_getThreadIdentifier(NULL); + oslThreadIdentifier threadId = osl::Thread::getCurrentIdentifier(); osl::MutexGuard guard(s_threadMap_mutex::get()); ThreadMap &rThreadMap = s_threadMap::get(); @@ -89,7 +90,7 @@ static uno_Environment * s_getCurrent(void) { uno_Environment * pEnv = NULL; - oslThreadIdentifier threadId = osl_getThreadIdentifier(NULL); + oslThreadIdentifier threadId = osl::Thread::getCurrentIdentifier(); osl::MutexGuard guard(s_threadMap_mutex::get()); ThreadMap &rThreadMap = s_threadMap::get(); -- cgit