X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b37c7e1dcdad16c20d9800d2abaf53cc6b653a64..0b90b51ceb7eadbef93c256a42af49dae0659d34:/wxPython/src/msw/grid.cpp diff --git a/wxPython/src/msw/grid.cpp b/wxPython/src/msw/grid.cpp index f1fd50ca23..85077f9918 100644 --- a/wxPython/src/msw/grid.cpp +++ b/wxPython/src/msw/grid.cpp @@ -235,7 +235,7 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \ bool CBNAME(int a, int b, const wxString& c) { \ - bool rval; \ + bool rval = 0; \ bool found; \ wxPyTState* state = wxPyBeginBlockThreads(); \ if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ @@ -272,7 +272,7 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \ bool CBNAME(int a, int b) { \ - bool rval; \ + bool rval = 0; \ bool found; \ wxPyTState* state = wxPyBeginBlockThreads(); \ if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ @@ -332,7 +332,7 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \ bool CBNAME(size_t a, size_t b) { \ - bool rval; \ + bool rval = 0; \ bool found; \ wxPyTState* state = wxPyBeginBlockThreads(); \ if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ @@ -350,7 +350,7 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \ bool CBNAME(size_t a) { \ - bool rval; \ + bool rval = 0; \ bool found; \ wxPyTState* state = wxPyBeginBlockThreads(); \ if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ @@ -410,7 +410,7 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \ bool CBNAME() { \ - bool rval; \ + bool rval = 0; \ bool found; \ wxPyTState* state = wxPyBeginBlockThreads(); \ if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \