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(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(&val->elements + i * pTdElem->nSize); uno_Sequence* seq = cloneSequence( - *(uno_Sequence**) (pValBuf), + reinterpret_cast(pValBuf), _tElem); - *((uno_Sequence**) pBufCur) = seq; + *reinterpret_cast(pBufCur) = seq; pBufCur += pTdElem->nSize; } break;