Commit 8efe833a authored by Mathieu Westphal's avatar Mathieu Westphal

Initializing class members to avoid warnings

parent f4551744
......@@ -140,8 +140,10 @@ class vtkPythonScopeGilEnsurer
{
public:
vtkPythonScopeGilEnsurer(bool force = false)
: State(PyGILState_UNLOCKED)
{
#ifdef VTK_PYTHON_FULL_THREADSAFE
// Force is always true with FULL_THREADSAFE
force = true;
#endif
this->Force = force;
......@@ -161,6 +163,7 @@ public:
private:
PyGILState_STATE State;
bool Force;
vtkPythonScopeGilEnsurer(const vtkPythonScopeGilEnsurer&); // Not implemented.
void operator=(const vtkPythonScopeGilEnsurer&); // Not implemented.
};
......
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