Fix typo in an example of Bind()-ing a function in the event overview.
Functors must be passed by const reference, not pointer. Closes #14572. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -374,7 +374,7 @@ MyFunctor myFunctor;
|
||||
|
||||
MyFrame::MyFrame()
|
||||
{
|
||||
Bind( wxEVT_COMMAND_MENU_SELECTED, &myFunctor, wxID_EXIT );
|
||||
Bind( wxEVT_COMMAND_MENU_SELECTED, myFunctor, wxID_EXIT );
|
||||
}
|
||||
@endcode
|
||||
|
||||
|
Reference in New Issue
Block a user