]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
Backed-out PNG8 patch (no time to look at why
[wxWidgets.git] / src / common / menucmn.cpp
index befcfd613d80586cc5eb79230e0d06b593603025..0f49207fd0c0e0f700e4575f89a38883addad53d 100644 (file)
@@ -141,7 +141,7 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
             }
         }
 
-        if ( current.empty() ) {
+        if ( current.IsEmpty() ) {
             wxLogDebug(wxT("No accel key found, accel string ignored."));
         }
         else {
@@ -262,7 +262,7 @@ void wxMenuItemBase::SetAccel(wxAcceleratorEntry *accel)
             // we should process them here
 
             default:
-                if ( wxIsalnum((wxChar)code) )
+                if ( wxIsalnum(code) )
                 {
                     text << (wxChar)code;