diff options
Diffstat (limited to 'cppu/source')
-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 ); |