diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:16:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:16:18 +0200 |
commit | 64f6190d84055f4c19b024017079fea0dce999a4 (patch) | |
tree | 33b268c714b03d099f361af3da40c6815433b47b /sd/source/ui/dlg/sdtreelb.cxx | |
parent | 6b97231ba338e7d69f882316b7615feecb54cb33 (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I0b1cbc96f85b6345b8abc843e5d609f9cc8a24b9
Diffstat (limited to 'sd/source/ui/dlg/sdtreelb.cxx')
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index e478adf69c77..cd90acf2f1f7 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1226,7 +1226,7 @@ void SdPageObjsTLB::DoDrag() SdrObject* pObject = NULL; void* pUserData = GetCurEntry()->GetUserData(); if (pUserData != NULL && pUserData != reinterpret_cast<void*>(1)) - pObject = reinterpret_cast<SdrObject*>(pUserData); + pObject = static_cast<SdrObject*>(pUserData); if (pObject != NULL) { // For shapes without a user supplied name (the automatically @@ -1413,8 +1413,8 @@ TriState SdPageObjsTLB::NotifyMoving( while (GetParent(pDestination) != NULL && GetParent(GetParent(pDestination)) != NULL) pDestination = GetParent(pDestination); - SdrObject* pTargetObject = reinterpret_cast<SdrObject*>(pDestination->GetUserData()); - SdrObject* pSourceObject = reinterpret_cast<SdrObject*>(pEntry->GetUserData()); + SdrObject* pTargetObject = static_cast<SdrObject*>(pDestination->GetUserData()); + SdrObject* pSourceObject = static_cast<SdrObject*>(pEntry->GetUserData()); if (pSourceObject == reinterpret_cast<SdrObject*>(1)) pSourceObject = NULL; |