]> git.saurik.com Git - wxWidgets.git/commitdiff
Missing casts to event handling functions.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 9 Mar 2005 16:29:59 +0000 (16:29 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 9 Mar 2005 16:29:59 +0000 (16:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/choicebk.h
include/wx/dateevt.h
include/wx/dialup.h
include/wx/fdrepdlg.h
include/wx/generic/grid.h
include/wx/generic/splitter.h
include/wx/process.h
include/wx/textctrl.h

index 04539083363bad41fda2835423198d963a14f48b..dadd5f4be7109b11deaef084befcf7a3b6a75166 100644 (file)
@@ -126,17 +126,13 @@ extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
 typedef void (wxEvtHandler::*wxChoicebookEventFunction)(wxChoicebookEvent&);
 
 #define wxChoicebookEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxChoicebookEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxChoicebookEventFunction, &func)
 
-#define EVT_CHOICEBOOK_PAGE_CHANGED(id, fn)                                   \
-    wx__DECLARE_EVT1(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED,                   \
-                     id,                                                      \
-                     wxChoicebookEventHandler(fn))
+#define EVT_CHOICEBOOK_PAGE_CHANGED(winid, fn) \
+    wx__DECLARE_EVT1(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, winid, wxChoicebookEventHandler(fn))
 
-#define EVT_CHOICEBOOK_PAGE_CHANGING(id, fn)                                  \
-    wx__DECLARE_EVT1(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING,                  \
-                     id,                                                      \
-                     wxChoicebookEventHandler(fn))
+#define EVT_CHOICEBOOK_PAGE_CHANGING(winid, fn) \
+    wx__DECLARE_EVT1(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, winid, wxChoicebookEventHandler(fn))
 
 #endif // wxUSE_CHOICEBOOK
 
index e8ea79849626a373284fd3dd329ba9f8dc180615..b37340c5cd6ce0b07edd367d4782c474cd6e8c70 100644 (file)
@@ -51,7 +51,7 @@ END_DECLARE_EVENT_TYPES()
 typedef void (wxEvtHandler::*wxDateEventFunction)(wxDateEvent&);
 
 #define wxDateEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxDateEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxDateEventFunction, &func)
 
 #define EVT_DATE_CHANGED(id, fn) \
     wx__DECLARE_EVT1(wxEVT_DATE_CHANGED, id, wxDateEventHandler(fn))
index 30c06f756c643ec36689798169a08e345b0748e3..2a9975fd51a3e31cdecb04f56929a2b4f7d0a42e 100644 (file)
@@ -191,7 +191,7 @@ private:
 typedef void (wxEvtHandler::*wxDialUpEventFunction)(wxDialUpEvent&);
 
 #define wxDialUpEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxDialUpEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxDialUpEventFunction, &func)
 
 // macros to catch dialup events
 #define EVT_DIALUP_CONNECTED(func) \
index 8e2d8970b442afb02ed699ce312d2286a6df5c0f..4b5fb6cb59e215a67c72948c476149a623f78479 100644 (file)
@@ -176,7 +176,7 @@ END_DECLARE_EVENT_TYPES()
 typedef void (wxEvtHandler::*wxFindDialogEventFunction)(wxFindDialogEvent&);
 
 #define wxFindDialogEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxFindDialogEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxFindDialogEventFunction, &func)
 
 #define EVT_FIND(id, fn) \
     wx__DECLARE_EVT1(wxEVT_COMMAND_FIND, id, wxFindDialogEventHandler(fn))
index cdca4984ef7452a46720b5237cacd14e1647ca6c..faa87dded8ecb20418835ebf0e7397a0a50ca9ae 100644 (file)
@@ -1327,7 +1327,7 @@ public:
     // DecRef() must be called on the returned pointer, as usual
     wxGridCellAttr *GetOrCreateCellAttr(int row, int col) const;
 
-    
+
     // shortcuts for setting the column parameters
 
     // set the format for the data in the column: default is string
@@ -2133,16 +2133,16 @@ typedef void (wxEvtHandler::*wxGridRangeSelectEventFunction)(wxGridRangeSelectEv
 typedef void (wxEvtHandler::*wxGridEditorCreatedEventFunction)(wxGridEditorCreatedEvent&);
 
 #define wxGridEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxGridEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxGridEventFunction, &func)
 
 #define wxGridSizeEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxGridSizeEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxGridSizeEventFunction, &func)
 
 #define wxGridRangeSelectEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxGridRangeSelectEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxGridRangeSelectEventFunction, &func)
 
 #define wxGridEditorCreatedEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxGridEditorCreatedEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxGridEditorCreatedEventFunction, &func)
 
 #define wx__DECLARE_GRIDEVT(evt, id, fn) \
     wx__DECLARE_EVT1(wxEVT_GRID_ ## evt, id, wxGridEventHandler(fn))
index dc767d5b716c6524ad5edff5669ccbaf7056b6d1..12056cac563cbdb85bca13196c66d15198191504 100644 (file)
@@ -389,7 +389,7 @@ private:
 typedef void (wxEvtHandler::*wxSplitterEventFunction)(wxSplitterEvent&);
 
 #define wxSplitterEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxSplitterEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxSplitterEventFunction, &func)
 
 #define wx__DECLARE_SPLITTEREVT(evt, id, fn) \
     wx__DECLARE_EVT1(wxEVT_COMMAND_SPLITTER_ ## evt, id, wxSplitterEventHandler(fn))
index baaea3e33025fbaac6d370fc83240340dfae1409..b372d7235fd1300a9a9df1057b30fccad53f4f51 100644 (file)
@@ -168,7 +168,7 @@ public:
 typedef void (wxEvtHandler::*wxProcessEventFunction)(wxProcessEvent&);
 
 #define wxProcessEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxProcessEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxProcessEventFunction, &func)
 
 #define EVT_END_PROCESS(id, func) \
    wx__DECLARE_EVT1(wxEVT_END_PROCESS, id, wxProcessEventHandler(func))
index 9d66c98012fadac539c4c0c191de205cb5509c4a..29806404bd388c67e3589e544820292d97170d62 100644 (file)
@@ -477,7 +477,7 @@ typedef void (wxEvtHandler::*wxTextUrlEventFunction)(wxTextUrlEvent&);
 
 #define wxTextEventHandler(func) wxCommandEventHandler(func)
 #define wxTextUrlEventHandler(func) \
-    (wxObjectEventFunction)wxStaticCastEvent(wxTextUrlEventFunction, &func)
+    (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxTextUrlEventFunction, &func)
 
 #define wx__DECLARE_TEXTEVT(evt, id, fn) \
     wx__DECLARE_EVT1(wxEVT_COMMAND_TEXT_ ## evt, id, wxTextEventHandler(fn))