]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/menuitem.cpp
Better sorting example and better default
[wxWidgets.git] / src / os2 / menuitem.cpp
index 9a0ed8134035ec6d9c425efa62ab0ed600842539..921cfd2cbe4c633f6ce423185c3427aabb62b286 100644 (file)
@@ -415,19 +415,19 @@ void wxMenuItem::SetText( const wxString& rText )
             uFlagsOld |= MIS_SUBMENU;
         }
 
-        BYTE*                       pData;
+        char*                       pData;
 
 #if wxUSE_OWNER_DRAWN
         if (IsOwnerDrawn())
         {
             uFlagsOld |= MIS_OWNERDRAW;
-            pData = (BYTE*)this;
+            pData = (char*)this;
         }
         else
 #endif  //owner drawn
         {
             uFlagsOld |= MIS_TEXT;
-            pData = (BYTE*)m_text.c_str();
+            pData = (char*) m_text.wx_str();
         }
 
         //