summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-12 18:27:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-12 18:27:54 +0200
commit0bfc98e63b062bc847fd0f37308c050ac618c56f (patch)
tree0b20885e7bb84fcc7932e5b6488a6efec1716ade /sd
parent4e871a9b225c0d21ed703b45400b4e8476214bce (diff)
loplugin:redundantcast: reinterpret_cast to void*
Change-Id: I947b49cfb15f0e7d6ddfaae386656c70e4bd48ba
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/sdmod1.cxx4
-rw-r--r--sd/source/ui/sidebar/PreviewValueSet.cxx3
2 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 47a6bc004336..448dd30947f9 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -927,7 +927,7 @@ OutlineToImpressFinalizer::OutlineToImpressFinalizer (
const ErrCode nErrorCode (
rBytes.ReadAt(
nReadPosition,
- reinterpret_cast<void*>(pBuffer.get()),
+ pBuffer.get(),
nBufferSize,
&nReadByteCount));
@@ -951,7 +951,7 @@ OutlineToImpressFinalizer::OutlineToImpressFinalizer (
// Append the read bytes to the end of the memory stream.
if (nReadByteCount > 0)
{
- mpStream->Write(reinterpret_cast<void*>(pBuffer.get()), nReadByteCount);
+ mpStream->Write(pBuffer.get(), nReadByteCount);
nReadPosition += nReadByteCount;
}
}
diff --git a/sd/source/ui/sidebar/PreviewValueSet.cxx b/sd/source/ui/sidebar/PreviewValueSet.cxx
index 3e4a6f599541..7c1145cf9c60 100644
--- a/sd/source/ui/sidebar/PreviewValueSet.cxx
+++ b/sd/source/ui/sidebar/PreviewValueSet.cxx
@@ -55,8 +55,7 @@ void PreviewValueSet::SetRightMouseClickHandler (const Link<>& rLink)
void PreviewValueSet::MouseButtonDown (const MouseEvent& rEvent)
{
if (rEvent.IsRight())
- maRightMouseClickHandler.Call(reinterpret_cast<void*>(
- &const_cast<MouseEvent&>(rEvent)));
+ maRightMouseClickHandler.Call(&const_cast<MouseEvent&>(rEvent));
else
ValueSet::MouseButtonDown (rEvent);