]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/auibar.cpp
Refactor wxXRC to allow defining handlers outside of xrc library.
[wxWidgets.git] / src / aui / auibar.cpp
index 9cb1b9ab0a77ec7aa2e50b73b6fa45de6bcf556c..b18adb34405325034cf7a7ad5756771eb9418472 100644 (file)
@@ -2530,9 +2530,9 @@ void wxAuiToolBar::OnLeftDown(wxMouseEvent& evt)
                 Refresh(false);
                 if (res != -1)
                 {
-                    wxCommandEvent e(wxEVT_COMMAND_MENU_SELECTED, res);
-                    e.SetEventObject(this);
-                    GetParent()->GetEventHandler()->ProcessEvent(e);
+                    wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED, res);
+                    event.SetEventObject(this);
+                    GetParent()->GetEventHandler()->ProcessEvent(event);
                 }
             }