diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 13:50:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 13:50:37 +0100 |
commit | 4e3da621fe26c2ad85258692c63a044d0541bd64 (patch) | |
tree | 05607d0de471c5d9451b197945243f735ee168b0 /cppu/source/uno/copy.hxx | |
parent | 4b60941b60262be4861f5e8fba95366d3187c445 (diff) |
Some more loplugin:cstylecast clean-up
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
Diffstat (limited to 'cppu/source/uno/copy.hxx')
-rw-r--r-- | cppu/source/uno/copy.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cppu/source/uno/copy.hxx b/cppu/source/uno/copy.hxx index fc2ca00ceeb2..24d7864825c6 100644 --- a/cppu/source/uno/copy.hxx +++ b/cppu/source/uno/copy.hxx @@ -479,16 +479,16 @@ inline uno_Sequence * icopyConstructSequence( if (pDest != 0) { char * pElements = pDest->elements; - void ** pSourceElements = (void **)pSource->elements; + void ** pSourceElements = reinterpret_cast<void **>(pSource->elements); typelib_TypeDescription * pElementTypeDescr = 0; TYPELIB_DANGER_GET( &pElementTypeDescr, pElementType ); for ( sal_Int32 nPos = nElements; nPos--; ) { - ((void **)pElements)[nPos] = 0; + reinterpret_cast<void **>(pElements)[nPos] = 0; if (((void **)pSourceElements)[nPos]) { (*mapping->mapInterface)( - mapping, (void **)pElements + nPos, + mapping, reinterpret_cast<void **>(pElements) + nPos, pSourceElements[nPos], reinterpret_cast<typelib_InterfaceTypeDescription *>( pElementTypeDescr) ); |