[Libreoffice-commits] core.git: testtools/source
Stephan Bergmann
sbergman at redhat.com
Tue Jan 20 01:23:25 PST 2015
testtools/source/bridgetest/bridgetest.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit b0ce8ea909cc61710e73ddfa0d03c6fe34aab4cb
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jan 20 10:22:49 2015 +0100
Some more loplugin:cstylecast: testtools
Change-Id: I28bce2f4bdbadef2d68130adc6fdc09c9840a005
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index 6bd4a92..80e601b 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;
More information about the Libreoffice-commits
mailing list