]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
Use a lowercase 'q' for the Quit menu item's keyEquivalent.
[wxWidgets.git] / src / common / cmdline.cpp
index 871cf5dbf28435cf0c245b43cf78b287eedb4f64..2248a5b746d6f2b65e516a89f1b651533a580ffa 100644 (file)
@@ -1153,7 +1153,7 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p)
         {
             switch ( *p )
             {
-            case _T('"'):
+                case _T('"'):
                     if ( !lastBS )
                     {
                         isInsideQuotes = !isInsideQuotes;
@@ -1178,7 +1178,9 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p)
 
                 case _T('\0'):
                     endParam = TRUE;
-                    break;
+
+                    // exit from the loop directly, without changing arg
+                    continue;
             }
 
             lastBS = *p == _T('\\');