Missing casts to event handling functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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))
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user