]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ctrlcmn.cpp
Removed a return statement from void function
[wxWidgets.git] / src / common / ctrlcmn.cpp
index 9d782d7f18fed2ff83c87413a81568550ea1951d..32f17b17a5479f2741df1901399a1d3ed9c2446e 100644 (file)
@@ -95,7 +95,7 @@ void wxControlBase::Command(wxCommandEvent& event)
 
 void wxControlBase::InitCommandEvent(wxCommandEvent& event) const
 {
-    event.SetEventObject((wxControlBase *)this);    // const_cast
+    event.SetEventObject(const_cast<wxControlBase *>(this));
 
     // event.SetId(GetId()); -- this is usuall done in the event ctor