Points: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
a5d878e498
commit
10211b284c
@@ -93,7 +93,7 @@ PyObject *PropertyPointKernel::getPyObject()
|
||||
void PropertyPointKernel::setPyObject(PyObject *value)
|
||||
{
|
||||
if (PyObject_TypeCheck(value, &(PointsPy::Type))) {
|
||||
PointsPy *pcObject = (PointsPy*)value;
|
||||
PointsPy *pcObject = static_cast<PointsPy*>(value);
|
||||
setValue( *(pcObject->getPointKernelPtr()));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user