Fixed some warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -187,7 +187,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME)                            \
 | 
					#define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME)                            \
 | 
				
			||||||
    bool CBNAME(int a, int b, const wxString& c)  {                             \
 | 
					    bool CBNAME(int a, int b, const wxString& c)  {                             \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
				
			||||||
@@ -224,7 +224,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME)                                  \
 | 
					#define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME)                                  \
 | 
				
			||||||
    bool CBNAME(int a, int b)  {                                                \
 | 
					    bool CBNAME(int a, int b)  {                                                \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
				
			||||||
@@ -284,7 +284,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME)                              \
 | 
					#define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME)                              \
 | 
				
			||||||
    bool CBNAME(size_t a, size_t b)  {                                          \
 | 
					    bool CBNAME(size_t a, size_t b)  {                                          \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
				
			||||||
@@ -302,7 +302,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME)                                   \
 | 
					#define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME)                                   \
 | 
				
			||||||
    bool CBNAME(size_t a)  {                                                    \
 | 
					    bool CBNAME(size_t a)  {                                                    \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
				
			||||||
@@ -362,7 +362,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define PYCALLBACK_BOOL_(PCLASS, CBNAME)                                        \
 | 
					#define PYCALLBACK_BOOL_(PCLASS, CBNAME)                                        \
 | 
				
			||||||
    bool CBNAME()  {                                                            \
 | 
					    bool CBNAME()  {                                                            \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -235,7 +235,7 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME)                            \
 | 
					#define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME)                            \
 | 
				
			||||||
    bool CBNAME(int a, int b, const wxString& c)  {                             \
 | 
					    bool CBNAME(int a, int b, const wxString& c)  {                             \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        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)                                  \
 | 
					#define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME)                                  \
 | 
				
			||||||
    bool CBNAME(int a, int b)  {                                                \
 | 
					    bool CBNAME(int a, int b)  {                                                \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        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)                              \
 | 
					#define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME)                              \
 | 
				
			||||||
    bool CBNAME(size_t a, size_t b)  {                                          \
 | 
					    bool CBNAME(size_t a, size_t b)  {                                          \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        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)                                   \
 | 
					#define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME)                                   \
 | 
				
			||||||
    bool CBNAME(size_t a)  {                                                    \
 | 
					    bool CBNAME(size_t a)  {                                                    \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        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)                                        \
 | 
					#define PYCALLBACK_BOOL_(PCLASS, CBNAME)                                        \
 | 
				
			||||||
    bool CBNAME()  {                                                            \
 | 
					    bool CBNAME()  {                                                            \
 | 
				
			||||||
        bool rval;                                                              \
 | 
					        bool rval = 0;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1388,7 +1388,7 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define IMP_PYCALLBACK_bool_any(CLASS, PCLASS, CBNAME, Type)                    \
 | 
					#define IMP_PYCALLBACK_bool_any(CLASS, PCLASS, CBNAME, Type)                    \
 | 
				
			||||||
    bool CLASS::CBNAME(Type& a) {                                               \
 | 
					    bool CLASS::CBNAME(Type& a) {                                               \
 | 
				
			||||||
        bool rv;                                                                \
 | 
					        bool rv=FALSE;                                                          \
 | 
				
			||||||
        bool found;                                                             \
 | 
					        bool found;                                                             \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads();                            \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) {                \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) {                \
 | 
				
			||||||
@@ -1504,7 +1504,7 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define IMP_PYCALLBACK_BOOL_ME(CLASS, PCLASS, CBNAME) \
 | 
					#define IMP_PYCALLBACK_BOOL_ME(CLASS, PCLASS, CBNAME) \
 | 
				
			||||||
    bool CLASS::CBNAME(wxMouseEvent& e) { \
 | 
					    bool CLASS::CBNAME(wxMouseEvent& e) { \
 | 
				
			||||||
        bool rval; \
 | 
					        bool rval=FALSE; \
 | 
				
			||||||
        bool found; \
 | 
					        bool found; \
 | 
				
			||||||
        wxPyTState* state = wxPyBeginBlockThreads(); \
 | 
					        wxPyTState* state = wxPyBeginBlockThreads(); \
 | 
				
			||||||
        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
 | 
					        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user