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:
Vadim Zeitlin
2012-08-11 23:09:36 +00:00
parent c3b504ad03
commit 572f4ad212

View File

@@ -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