]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/choiccmn.cpp
fix harmless warnings about uninitialized (not really) variables in MSVC release...
[wxWidgets.git] / src / common / choiccmn.cpp
index 5a77d70f826db3a88cba89ab6508ebcfc83c8fd5..64f8a92347e01da7d80b107e513fdde002f4ec48 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        common/choiccmn.cpp
+// Name:        src/common/choiccmn.cpp
 // Purpose:     common (to all ports) wxChoice functions
 // Author:      Vadim Zeitlin
 // Modified by:
 
 #if wxUSE_CHOICE
 
+#include "wx/choice.h"
+
 #ifndef WX_PRECOMP
-    #include "wx/choice.h"
 #endif
 
-const wxChar wxChoiceNameStr[] = wxT("choice");
+const char wxChoiceNameStr[] = "choice";
 
 // ============================================================================
 // implementation
@@ -48,8 +49,7 @@ wxChoiceBase::~wxChoiceBase()
 void wxChoiceBase::Command(wxCommandEvent& event)
 {
     SetSelection(event.GetInt());
-    (void)ProcessEvent(event);
+    (void)GetEventHandler()->ProcessEvent(event);
 }
 
 #endif // wxUSE_CHOICE
-