]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix typo in an example of Bind()-ing a function in the event overview.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Aug 2012 23:09:36 +0000 (23:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Aug 2012 23:09:36 +0000 (23:09 +0000)
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

index 10a1c6543ac21bea1a86572412156fe4916063a9..098c7efafa15fd82ce822806f9e1ca68f66d33e4 100644 (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