]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/menuitem.cpp
another segfault fix
[wxWidgets.git] / src / os2 / menuitem.cpp
index 16ea72e6a0f97ea21fd68ecdfa52d37191c7ba0c..6b4c37c65ae5c6ed02bb4fcdbee65442de8da1e7 100644 (file)
@@ -62,7 +62,7 @@ static wxString TextToLabel(const wxString& rTitle)
 {
     wxString Title;
     const wxChar *pc;
-    for (pc = rTitle; *pc != wxT('\0'); pc++ )
+    for (pc = rTitle.c_str(); *pc != wxT('\0'); pc++ )
     {
         if (*pc == wxT('&') )
         {
@@ -74,10 +74,6 @@ static wxString TextToLabel(const wxString& rTitle)
             else
                 Title << wxT('~');
         }
-//         else if (*pc == wxT('/'))
-//         {
-//             Title << wxT('\\');
-//         }
         else
         {
             if ( *pc == wxT('~') )