Gui/Mod: replace several reinterpret_cast with static_cast
This commit is contained in:
@@ -277,7 +277,7 @@ PyObject* LinkViewPy::getElementPicked(PyObject* args)
|
||||
return nullptr;
|
||||
void *ptr = nullptr;
|
||||
Base::Interpreter().convertSWIGPointerObj("pivy.coin", "SoPickedPoint *", obj, &ptr, 0);
|
||||
SoPickedPoint *pp = reinterpret_cast<SoPickedPoint*>(ptr);
|
||||
SoPickedPoint *pp = static_cast<SoPickedPoint*>(ptr);
|
||||
if(!pp)
|
||||
throw Py::TypeError("type must be of coin.SoPickedPoint");
|
||||
PY_TRY{
|
||||
@@ -296,7 +296,7 @@ PyObject* LinkViewPy::getDetailPath(PyObject* args)
|
||||
return nullptr;
|
||||
void *ptr = nullptr;
|
||||
Base::Interpreter().convertSWIGPointerObj("pivy.coin", "SoPath *", path, &ptr, 0);
|
||||
SoPath *pPath = reinterpret_cast<SoPath*>(ptr);
|
||||
SoPath *pPath = static_cast<SoPath*>(ptr);
|
||||
if(!pPath)
|
||||
throw Py::TypeError("type must be of coin.SoPath");
|
||||
PY_TRY{
|
||||
|
||||
Reference in New Issue
Block a user