]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menu.cpp
1. more (minor) wxCaret bug fixes
[wxWidgets.git] / src / msw / menu.cpp
index 7d926f6ee2d4556acba92709578d664727948540..58a835eacda9b944471ee8a21317547b4db00de3 100644 (file)
@@ -179,20 +179,20 @@ void wxMenu::Append(wxMenuItem *pItem)
         else {
             if ( current.Len() == 1 ) {
                 // it's a letter
-                keyCode = wxToupper(current[0]);
+                keyCode = wxToupper(current[0U]);
             }
             else {
                 // it should be a function key
-                if ( current[0] == 'f' && isdigit(current[1]) &&
+                if ( current[0U] == 'f' && isdigit(current[1U]) &&
                      (current.Len() == 2 ||
-                     (current.Len() == 3 && isdigit(current[2]))) ) {
+                     (current.Len() == 3 && isdigit(current[2U]))) ) {
                     int n;
                     sscanf(current.c_str() + 1, "%d", &n);
 
                     keyCode = VK_F1 + n - 1;
                 }
                 else {
-                    wxLogDebug(_T("Unreckognized accel key '%s', accel "
+                    wxLogDebug(_T("Unrecognized accel key '%s', accel "
                                   "string ignored."), current.c_str());
                 }
             }