fix Coverity issues

This commit is contained in:
wmayer
2016-08-21 14:03:02 +02:00
parent 8cc3ee64e8
commit 0824c5fd3c
29 changed files with 621 additions and 543 deletions

View File

@@ -52,6 +52,7 @@ MacroManager::MacroManager()
recordGui(true),
guiAsComment(true),
scriptToPyConsole(true),
localEnv(true),
pyConsole(0),
pyDebugger(new PythonDebugger())
{
@@ -203,7 +204,7 @@ namespace Gui {
class PythonRedirector
{
public:
PythonRedirector(const char* type, PyObject* obj) : std_out(type), out(obj)
PythonRedirector(const char* type, PyObject* obj) : std_out(type), out(obj), old(0)
{
if (out) {
Base::PyGILStateLocker lock;