Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 52207e5d authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkPythonInteractiveInterpreter: remove const casting

This was fixed in Python 2.5; VTK requires 2.7 now.
parent 58d92513
......@@ -79,7 +79,7 @@ public:
PyRun_SimpleString(const_cast<char*>(code));
// Now get the reference to __vtkConsole and save the pointer.
PyObject* main_module = PyImport_AddModule((char*)"__main__");
PyObject* main_module = PyImport_AddModule("__main__");
PyObject* global_dict = PyModule_GetDict(main_module);
this->InteractiveConsole = PyDict_GetItemString(global_dict, "__vtkConsole");
this->InteractiveConsoleLocals = PyDict_GetItemString(global_dict, "__vtkConsoleLocals");
......@@ -193,7 +193,7 @@ bool vtkPythonInteractiveInterpreter::Push(const char* const code)
if (res)
{
int status = 0;
if (PyArg_Parse(res, (char*)"i", &status))
if (PyArg_Parse(res, "i", &status))
{
ret_value = (status > 0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment