diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 10:22:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 10:22:49 +0100 |
commit | b0ce8ea909cc61710e73ddfa0d03c6fe34aab4cb (patch) | |
tree | 90040222036e562c7f2dfa85013eb98b464270e2 | |
parent | a3f3d4d1904fd68ec3f79cc367a995a6b5a31e35 (diff) |
Some more loplugin:cstylecast: testtools
Change-Id: I28bce2f4bdbadef2d68130adc6fdc09c9840a005
-rw-r--r-- | testtools/source/bridgetest/bridgetest.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index 6bd4a92ec767..80e601b2d968 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -1037,7 +1037,7 @@ uno_Sequence* cloneSequence(const uno_Sequence* val, const Type& type) td.makeComplete(); typelib_TypeDescription* pTdRaw = td.get(); typelib_IndirectTypeDescription* pIndirectTd = - (typelib_IndirectTypeDescription*) pTdRaw; + reinterpret_cast<typelib_IndirectTypeDescription*>(pTdRaw); typelib_TypeDescription* pTdElem = pIndirectTd->pType->pType; sal_Int8* buf = new sal_Int8[pTdElem->nSize * val->nElements]; @@ -1051,12 +1051,12 @@ uno_Sequence* cloneSequence(const uno_Sequence* val, const Type& type) Type _tElem(pTdElem->pWeakRef); for (int i = 0; i < val->nElements; i++) { - sal_Int8 *pValBuf = (sal_Int8 *)(&val->elements + i * pTdElem->nSize); + sal_Int8 const *pValBuf = reinterpret_cast<sal_Int8 const *>(&val->elements + i * pTdElem->nSize); uno_Sequence* seq = cloneSequence( - *(uno_Sequence**) (pValBuf), + reinterpret_cast<uno_Sequence const *>(pValBuf), _tElem); - *((uno_Sequence**) pBufCur) = seq; + *reinterpret_cast<uno_Sequence**>(pBufCur) = seq; pBufCur += pTdElem->nSize; } break; |