summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-05 08:40:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-05 09:10:05 +0100
commit2f7a386ab2876223da1be73410bf1e7486f724ba (patch)
treede5cf52fc5ad7538fc89d3b8f5e343993ffaa75b
parentd06a37b0d29834ed493903e5c7e4d746c83c7f20 (diff)
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I73850d2b2ea6ff4376e25e0be39c65c35328a9a6
-rw-r--r--tools/source/memtools/mempool.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/source/memtools/mempool.cxx b/tools/source/memtools/mempool.cxx
index cf043f904c8b..415f188c3c0d 100644
--- a/tools/source/memtools/mempool.cxx
+++ b/tools/source/memtools/mempool.cxx
@@ -28,24 +28,24 @@ FixedMemPool::FixedMemPool(char const * pTypeName, sal_uInt16 nTypeSize)
{
char name[RTL_CACHE_NAME_LENGTH + 1];
snprintf (name, sizeof(name), "FixedMemPool_%d", (int)nTypeSize);
- m_pImpl = (FixedMemPool_Impl*)rtl_cache_create (name, nTypeSize, 0, NULL, NULL, NULL, 0, NULL, 0);
+ m_pImpl = reinterpret_cast<FixedMemPool_Impl*>(rtl_cache_create (name, nTypeSize, 0, NULL, NULL, NULL, 0, NULL, 0));
SAL_INFO("tools.memtools","FixedMemPool::ctor(\"" << m_pTypeName << "\"): " << m_pImpl);
}
FixedMemPool::~FixedMemPool()
{
SAL_INFO("tools.memtools","FixedMemPool::dtor(\"" << m_pTypeName << "\"): " << m_pImpl);
- rtl_cache_destroy ((rtl_cache_type*)(m_pImpl)), m_pImpl = 0;
+ rtl_cache_destroy (reinterpret_cast<rtl_cache_type*>(m_pImpl)), m_pImpl = 0;
}
void* FixedMemPool::Alloc()
{
- return rtl_cache_alloc ((rtl_cache_type*)(m_pImpl));
+ return rtl_cache_alloc (reinterpret_cast<rtl_cache_type*>(m_pImpl));
}
void FixedMemPool::Free( void* pFree )
{
- rtl_cache_free ((rtl_cache_type*)(m_pImpl), pFree);
+ rtl_cache_free (reinterpret_cast<rtl_cache_type*>(m_pImpl), pFree);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */