]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/combobox.cpp
added pragmas to disable icc warning when va_arg is used with a pointer type
[wxWidgets.git] / src / gtk1 / combobox.cpp
index 4b8aaa9de8807d82d1eec00e3ca2646f505ee897..ee5fdba2a54b49886b5e7adc754bd3b7d4ff7081 100644 (file)
@@ -844,12 +844,12 @@ void wxComboBox::OnChar( wxKeyEvent &event )
     if ( event.GetKeyCode() == WXK_RETURN )
     {
         // GTK automatically selects an item if its in the list
-        wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, GetId());
-        event.SetString( GetValue() );
-        event.SetInt( GetSelection() );
-        event.SetEventObject( this );
+        wxCommandEvent eventEnter(wxEVT_COMMAND_TEXT_ENTER, GetId());
+        eventEnter.SetString( GetValue() );
+        eventEnter.SetInt( GetSelection() );
+        eventEnter.SetEventObject( this );
 
-        if (!GetEventHandler()->ProcessEvent( event ))
+        if (!GetEventHandler()->ProcessEvent( eventEnter ))
         {
             // This will invoke the dialog default action, such
             // as the clicking the default button.