diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-08 20:56:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-08 20:56:19 +0200 |
commit | 81275d4725236b0c7fe9e724299dd67eeb203c99 (patch) | |
tree | 72f47f2ef175825cc09e0b8cad5eddf322b6223d | |
parent | fbf9858a60120a7fc8e1ca4045bbcd6091c614df (diff) |
Avoid loplugin:redundantcast in non-debug build
Change-Id: Ib5f57ba5154c56b89ab550aef5a87ee27539ddd9
-rw-r--r-- | cppu/source/uno/prim.hxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cppu/source/uno/prim.hxx b/cppu/source/uno/prim.hxx index d168fe86f9f8..3fcdb132d888 100644 --- a/cppu/source/uno/prim.hxx +++ b/cppu/source/uno/prim.hxx @@ -130,17 +130,14 @@ inline typelib_TypeDescriptionReference * _getVoidType() return g_pVoidType; } - +inline void CONSTRUCT_EMPTY_ANY(uno_Any * pAny) { + pAny->pType = _getVoidType(); #if OSL_DEBUG_LEVEL > 0 -#define CONSTRUCT_EMPTY_ANY( pAny ) \ -(pAny)->pType = _getVoidType(); \ -(pAny)->pData = reinterpret_cast<void *>(0xdeadbeef); + pAny->pData = reinterpret_cast<void *>(0xdeadbeef); #else -#define CONSTRUCT_EMPTY_ANY( pAny ) \ -(pAny)->pType = _getVoidType(); \ -(pAny)->pData = (pAny); + pAny->pData = pAny; #endif - +} #define TYPE_ACQUIRE( pType ) \ osl_atomic_increment( &(pType)->nRefCount ); |