Gui/Mod: replace several reinterpret_cast with static_cast

This commit is contained in:
wmayer
2022-06-25 11:36:55 +02:00
parent 360b4282f7
commit e9890c0798
33 changed files with 64 additions and 66 deletions

View File

@@ -315,8 +315,8 @@ ViewProviderPointMarker::~ViewProviderPointMarker()
void ViewProviderMeasureDistance::measureDistanceCallback(void * ud, SoEventCallback * n)
{
Gui::View3DInventorViewer* view = reinterpret_cast<Gui::View3DInventorViewer*>(n->getUserData());
PointMarker *pm = reinterpret_cast<PointMarker*>(ud);
Gui::View3DInventorViewer* view = static_cast<Gui::View3DInventorViewer*>(n->getUserData());
PointMarker *pm = static_cast<PointMarker*>(ud);
const SoEvent* ev = n->getEvent();
if (ev->isOfType(SoKeyboardEvent::getClassTypeId())) {
const SoKeyboardEvent * ke = static_cast<const SoKeyboardEvent*>(ev);