]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/spinbutt.h
Add a comment about covariant returns
[wxWidgets.git] / include / wx / spinbutt.h
index cf7fab4421ff5f7d646a3ea3d152cc9197d60350..7f7edb9e5be612a10a83e889c02b60537d0b9886 100644 (file)
@@ -111,7 +111,7 @@ private:
 typedef void (wxEvtHandler::*wxSpinEventFunction)(wxSpinEvent&);
 
 #define wxSpinEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxSpinEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxSpinEventFunction, &func)
 
 // macros for handling spin events
 #define EVT_SPIN_UP(winid, func) \