Kaydet (Commit) d9727f1b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantcast: const_cast to same type

Change-Id: Id14155fb1ec81d918490a904e4d0f6d2d67f7885
üst f5585675
......@@ -83,8 +83,7 @@ std::vector< BinaryAny >::iterator copyMemberValues(
for (sal_Int32 j = 0; j != ctd->nMembers; ++j) {
uno_type_copyData(
static_cast< char * >(buffer) + ctd->pMemberOffsets[j],
const_cast< void * >(
i++->getValue(css::uno::TypeDescription(ctd->ppTypeRefs[j]))),
i++->getValue(css::uno::TypeDescription(ctd->ppTypeRefs[j])),
ctd->ppTypeRefs[j], 0);
}
return i;
......@@ -462,7 +461,7 @@ BinaryAny Unmarshal::readSequence(css::uno::TypeDescription const & type) {
for (sal_uInt32 i = 0; i != n; ++i) {
uno_copyData(
static_cast< sal_Sequence * >(buf)->elements + i * ctd.get()->nSize,
const_cast< void * >(as[i].getValue(ctd)), ctd.get(), 0);
as[i].getValue(ctd), ctd.get(), 0);
}
return BinaryAny(type, &buf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment