]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a typo in one of the virtual callback macros.
authorRobin Dunn <robin@alldunn.com>
Mon, 18 Mar 2002 18:30:09 +0000 (18:30 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 18 Mar 2002 18:30:09 +0000 (18:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/helpers.h

index a177f4c7f39264b28cabde0406f8475e75efd27e..0db2221e05774df78a7f9c7c2b0279b9ed41ce09 100644 (file)
@@ -1145,10 +1145,10 @@ public:
     wxDragResult CLASS::CBNAME(wxCoord a, wxCoord b, wxDragResult c) {          \
         int rval=0;                                                             \
         bool found;                                                             \
-        wxPyBeginBlockThreads();                            \
+        wxPyBeginBlockThreads();                                                \
         if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME)))                  \
             rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c));\
-        wxPyEndBlockThreads();                                             \
+        wxPyEndBlockThreads();                                                  \
         if (! found)                                                            \
             rval = PCLASS::CBNAME(a, b, c);                                     \
         return (wxDragResult)rval;                                              \
@@ -1164,20 +1164,20 @@ public:
 
 #define IMP_PYCALLBACK_FSF_FSSTRING_pure(CLASS, PCLASS, CBNAME)         \
     wxFSFile* CLASS::CBNAME(wxFileSystem& a,const wxString& b) {        \
-        wxPyBeginBlockThreads();                    \
+        wxPyBeginBlockThreads();                                        \
         wxFSFile* rval=0;                                               \
         if (wxPyCBH_findCallback(m_myInst, #CBNAME)) {                  \
             PyObject* ro;                                               \
             PyObject* obj = wxPyMake_wxObject(&a);                      \
             ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)",\
-                                          obj, wx2PyString));           \
+                                          obj, wx2PyString(b)));        \
             if (ro) {                                                   \
                 SWIG_GetPtrObj(ro, (void **)&rval, "_wxFSFILE_p");      \
                 Py_DECREF(ro);                                          \
             }                                                           \
             Py_DECREF(obj);                                             \
         }                                                               \
-        wxPyEndBlockThreads();                                     \
+        wxPyEndBlockThreads();                                          \
         return rval;                                                    \
     };