Add missing semicolon to examples using wxDECLARE_XXX() macros
Such macros must be followed by semicolons but a couple of examples were missing them. Closes https://github.com/wxWidgets/wxWidgets/pull/1337 Closes #18408.
This commit is contained in:
@@ -98,10 +98,11 @@ First define one or more <em>event handlers</em>. They
|
|||||||
are just simple methods of the class that take as a parameter a
|
are just simple methods of the class that take as a parameter a
|
||||||
reference to an object of a wxEvent-derived class and have no return value (any
|
reference to an object of a wxEvent-derived class and have no return value (any
|
||||||
return information is passed via the argument, which is why it is non-const).
|
return information is passed via the argument, which is why it is non-const).
|
||||||
You also need to insert a macro
|
You also need to insert a line with the macro indicating that the class uses an
|
||||||
|
event table, like this:
|
||||||
|
|
||||||
@code
|
@code
|
||||||
wxDECLARE_EVENT_TABLE()
|
wxDECLARE_EVENT_TABLE();
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
somewhere in the class declaration. It doesn't matter where it appears but
|
somewhere in the class declaration. It doesn't matter where it appears but
|
||||||
@@ -132,7 +133,7 @@ private:
|
|||||||
// obligation to do that; this one is an event handler too:
|
// obligation to do that; this one is an event handler too:
|
||||||
void DoTest(wxCommandEvent& event);
|
void DoTest(wxCommandEvent& event);
|
||||||
|
|
||||||
wxDECLARE_EVENT_TABLE()
|
wxDECLARE_EVENT_TABLE();
|
||||||
};
|
};
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
|
@@ -4799,7 +4799,7 @@ wxEventType wxNewEventType();
|
|||||||
|
|
||||||
This is mostly used by wxWidgets internally, e.g.
|
This is mostly used by wxWidgets internally, e.g.
|
||||||
@code
|
@code
|
||||||
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_BUTTON, wxCommandEvent)
|
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_BUTTON, wxCommandEvent);
|
||||||
@endcode
|
@endcode
|
||||||
*/
|
*/
|
||||||
#define wxDECLARE_EXPORTED_EVENT( expdecl, name, cls ) \
|
#define wxDECLARE_EXPORTED_EVENT( expdecl, name, cls ) \
|
||||||
|
Reference in New Issue
Block a user