From: Vadim Zeitlin Date: Sat, 11 Aug 2012 23:09:36 +0000 (+0000) Subject: Fix typo in an example of Bind()-ing a function in the event overview. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/572f4ad212f7f5d4e1bad60d4c30a682ce3f3152 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 --- diff --git a/docs/doxygen/overviews/eventhandling.h b/docs/doxygen/overviews/eventhandling.h index 10a1c6543a..098c7efafa 100644 --- a/docs/doxygen/overviews/eventhandling.h +++ b/docs/doxygen/overviews/eventhandling.h @@ -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