]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
Doc corrections
[wxWidgets.git] / src / generic / vlbox.cpp
index df023053a3a10b77a992c7571ee972e995a4f957..50a484eec634cdf492f1f82398b548874161bc32 100644 (file)
@@ -486,7 +486,7 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
     // flags for DoHandleItemClick()
     int flags = ItemClick_Kbd;
 
-    int current = 0; // just to silent the stupid compiler warnings
+    int current;
     switch ( event.GetKeyCode() )
     {
         case WXK_HOME:
@@ -539,6 +539,8 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
 
         default:
             event.Skip();
+            current = 0; // just to silent the stupid compiler warnings
+            wxUnusedVar(current);
             return;
     }