diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osl/thread.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osl/thread.hxx b/include/osl/thread.hxx index 7d786eda0b62..7b1e06ad386f 100644 --- a/include/osl/thread.hxx +++ b/include/osl/thread.hxx @@ -69,7 +69,7 @@ public: bool SAL_CALL create() { assert(m_hThread == 0); // only one running thread per instance - m_hThread = osl_createSuspendedThread( threadFunc, (void*)this); + m_hThread = osl_createSuspendedThread( threadFunc, static_cast<void*>(this)); if (m_hThread == 0) { return false; @@ -84,7 +84,7 @@ public: if( m_hThread) return false; m_hThread= osl_createSuspendedThread( threadFunc, - (void*)this); + static_cast<void*>(this)); return m_hThread != 0; } |