diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:12:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:20 +0100 |
commit | 4730b58d9989512ed25790768ba78decfde7d667 (patch) | |
tree | 2d53902a514a0f69a70dc0bc7bebe6d39290e1be /cppu/source/uno/destr.hxx | |
parent | 311fd06af4e297fa748684a61edd3ee38845c485 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I17eb40b2923793280ea220e519f97563c8490a19
Diffstat (limited to 'cppu/source/uno/destr.hxx')
-rw-r--r-- | cppu/source/uno/destr.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cppu/source/uno/destr.hxx b/cppu/source/uno/destr.hxx index 1f0cc3213bb3..1bf9313801d0 100644 --- a/cppu/source/uno/destr.hxx +++ b/cppu/source/uno/destr.hxx @@ -113,7 +113,7 @@ inline void _destructAny( case typelib_TypeClass_STRUCT: case typelib_TypeClass_EXCEPTION: { - typelib_TypeDescription * pTypeDescr = 0; + typelib_TypeDescription * pTypeDescr = nullptr; TYPELIB_DANGER_GET( &pTypeDescr, pType ); _destructStruct( pAny->pData, reinterpret_cast<typelib_CompoundTypeDescription *>(pTypeDescr), release ); TYPELIB_DANGER_RELEASE( pTypeDescr ); @@ -123,7 +123,7 @@ inline void _destructAny( case typelib_TypeClass_SEQUENCE: { destructSequence( - static_cast<uno_Sequence *>(pAny->pReserved), pType, 0, release ); + static_cast<uno_Sequence *>(pAny->pReserved), pType, nullptr, release ); break; } case typelib_TypeClass_INTERFACE: @@ -198,7 +198,7 @@ inline sal_Int32 idestructElements( case typelib_TypeClass_STRUCT: case typelib_TypeClass_EXCEPTION: { - typelib_TypeDescription * pElementTypeDescr = 0; + typelib_TypeDescription * pElementTypeDescr = nullptr; TYPELIB_DANGER_GET( &pElementTypeDescr, pElementType ); sal_Int32 nElementSize = pElementTypeDescr->nSize; for ( sal_Int32 nPos = nStartIndex; nPos < nStopIndex; ++nPos ) @@ -214,7 +214,7 @@ inline sal_Int32 idestructElements( } case typelib_TypeClass_SEQUENCE: { - typelib_TypeDescription * pElementTypeDescr = 0; + typelib_TypeDescription * pElementTypeDescr = nullptr; TYPELIB_DANGER_GET( &pElementTypeDescr, pElementType ); uno_Sequence ** pDest = static_cast<uno_Sequence **>(pElements); for ( sal_Int32 nPos = nStartIndex; nPos < nStopIndex; ++nPos ) |