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 --- lotuswordpro/source/filter/lwpglobalmgr.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwpglobalmgr.cxx b/lotuswordpro/source/filter/lwpglobalmgr.cxx index 489b0cfd47ce..b3eb7e02f631 100644 --- a/lotuswordpro/source/filter/lwpglobalmgr.cxx +++ b/lotuswordpro/source/filter/lwpglobalmgr.cxx @@ -54,7 +54,7 @@ * ************************************************************************/ #include "lwpglobalmgr.hxx" -#include +#include std::map< sal_uInt32,LwpGlobalMgr* > LwpGlobalMgr::m_ThreadMap; LwpGlobalMgr::LwpGlobalMgr(LwpSvStream* pSvStream) { @@ -106,7 +106,7 @@ LwpGlobalMgr::~LwpGlobalMgr() LwpGlobalMgr* LwpGlobalMgr::GetInstance(LwpSvStream* pSvStream) { - sal_uInt32 nThreadID = osl_getThreadIdentifier((void*)0); + sal_uInt32 nThreadID = osl::Thread::getCurrentIdentifier(); std::map< sal_uInt32,LwpGlobalMgr* >::iterator iter; iter = m_ThreadMap.find(nThreadID); if (iter == m_ThreadMap.end()) @@ -121,7 +121,7 @@ LwpGlobalMgr* LwpGlobalMgr::GetInstance(LwpSvStream* pSvStream) void LwpGlobalMgr::DeleteInstance() { - sal_uInt32 nThreadID = osl_getThreadIdentifier((void*)0); + sal_uInt32 nThreadID = osl::Thread::getCurrentIdentifier(); std::map< sal_uInt32,LwpGlobalMgr* >::iterator iter; iter = m_ThreadMap.find(nThreadID); if (iter != m_ThreadMap.end()) -- cgit