Gui/Mod: replace several reinterpret_cast with static_cast
This commit is contained in:
@@ -575,7 +575,7 @@ public:
|
||||
static
|
||||
void syncCameraCB(void * data, SoSensor * s)
|
||||
{
|
||||
ManualAlignment* self = reinterpret_cast<ManualAlignment*>(data);
|
||||
ManualAlignment* self = static_cast<ManualAlignment*>(data);
|
||||
if (!self->myViewer)
|
||||
return; // already destroyed
|
||||
SoCamera* cam1 = self->myViewer->getViewer(0)->getSoRenderManager()->getCamera();
|
||||
@@ -1215,7 +1215,7 @@ void ManualAlignment::probePickedCallback(void * ud, SoEventCallback * n)
|
||||
{
|
||||
Q_UNUSED(ud);
|
||||
|
||||
Gui::View3DInventorViewer* view = reinterpret_cast<Gui::View3DInventorViewer*>(n->getUserData());
|
||||
Gui::View3DInventorViewer* view = static_cast<Gui::View3DInventorViewer*>(n->getUserData());
|
||||
const SoEvent* ev = n->getEvent();
|
||||
if (ev->getTypeId() == SoMouseButtonEvent::getClassTypeId()) {
|
||||
// set as handled
|
||||
|
||||
Reference in New Issue
Block a user