From 572f4ad212f7f5d4e1bad60d4c30a682ce3f3152 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 11 Aug 2012 23:09:36 +0000 Subject: [PATCH] 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 --- docs/doxygen/overviews/eventhandling.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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