summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:06 +0200
commitd9727f1b78cd8f1bec0d6a9cc4bed693e9715328 (patch)
tree2db269e1277d4873ddce5b4cb1ffbf1465077001 /binaryurp
parentf5585675581043d63141c6e33c2518f3ddae21ba (diff)
loplugin:redundantcast: const_cast to same type
Change-Id: Id14155fb1ec81d918490a904e4d0f6d2d67f7885
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/source/unmarshal.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/binaryurp/source/unmarshal.cxx b/binaryurp/source/unmarshal.cxx
index ee996e1e9636..eaeb54b471c0 100644
--- a/binaryurp/source/unmarshal.cxx
+++ b/binaryurp/source/unmarshal.cxx
@@ -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);
}