summaryrefslogtreecommitdiff
path: root/stoc/source/typeconv/convert.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:24:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:43 +0100
commitda95f17cb69fe9eb18be44aaac9f71a68445e91c (patch)
tree6e46ab7b819efc6107b8acaf33e86f881992c2c9 /stoc/source/typeconv/convert.cxx
parent374b4f349f1d1cb3b33004580ebc903d206f28ff (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I162b47199e959f97c3bed1f307225db944017e4f
Diffstat (limited to 'stoc/source/typeconv/convert.cxx')
-rw-r--r--stoc/source/typeconv/convert.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 44bfe6c94a31..46c06225f920 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -533,7 +533,7 @@ Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestTy
if (! rVal.hasValue())
{
// void -> interface (null)
- void * null_ref = 0;
+ void * null_ref = nullptr;
aRet.setValue( &null_ref, aDestType );
break;
}
@@ -564,19 +564,19 @@ Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestTy
TypeDescription aSourceTD( aSourceType );
TypeDescription aDestTD( aDestType );
- typelib_TypeDescription * pSourceElementTD = 0;
+ typelib_TypeDescription * pSourceElementTD = nullptr;
TYPELIB_DANGER_GET(
&pSourceElementTD,
reinterpret_cast<typelib_IndirectTypeDescription *>(aSourceTD.get())->pType );
- typelib_TypeDescription * pDestElementTD = 0;
+ typelib_TypeDescription * pDestElementTD = nullptr;
TYPELIB_DANGER_GET(
&pDestElementTD,
reinterpret_cast<typelib_IndirectTypeDescription *>(aDestTD.get())->pType );
sal_uInt32 nPos = (*static_cast<const uno_Sequence * const *>(rVal.getValue()))->nElements;
- uno_Sequence * pRet = 0;
+ uno_Sequence * pRet = nullptr;
uno_sequence_construct(
- &pRet, aDestTD.get(), 0, nPos,
+ &pRet, aDestTD.get(), nullptr, nPos,
reinterpret_cast< uno_AcquireFunc >(cpp_acquire) );
aRet.setValue( &pRet, aDestTD.get() );
uno_destructData(