summaryrefslogtreecommitdiff
path: root/cppu/source/threadpool/current.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/source/threadpool/current.cxx')
-rw-r--r--cppu/source/threadpool/current.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppu/source/threadpool/current.cxx b/cppu/source/threadpool/current.cxx
index 63992dd87d74..610d4b35e755 100644
--- a/cppu/source/threadpool/current.cxx
+++ b/cppu/source/threadpool/current.cxx
@@ -146,7 +146,7 @@ extern "C" void SAL_CALL delete_IdContainer( void * p )
{
if (p)
{
- IdContainer * pId = reinterpret_cast< IdContainer * >( p );
+ IdContainer * pId = static_cast< IdContainer * >( p );
if (pId->pCurrentContext)
{
(*pId->pCurrentContextEnv->releaseInterface)(
@@ -168,7 +168,7 @@ IdContainer * getIdContainer()
static ThreadKey s_key( delete_IdContainer );
oslThreadKey aKey = s_key.getThreadKey();
- IdContainer * pId = reinterpret_cast< IdContainer * >( ::osl_getThreadKeyData( aKey ) );
+ IdContainer * pId = static_cast< IdContainer * >( ::osl_getThreadKeyData( aKey ) );
if (! pId)
{
pId = new IdContainer();