X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28206ce84e226d703d99c03bdaf493d4cd2f07ca..ee5aa9d44fa75e88bce9981d7d02dea9f6d5f3c4:/src/os2/ownerdrw.cpp diff --git a/src/os2/ownerdrw.cpp b/src/os2/ownerdrw.cpp index 93742e8279..12790b51ce 100644 --- a/src/os2/ownerdrw.cpp +++ b/src/os2/ownerdrw.cpp @@ -313,7 +313,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC, // // Deal with the tab, extracting the Accel text // - nIndex = sFullString.Find(sTgt.c_str()); + nIndex = sFullString.Find(sTgt); if (nIndex != -1) { bFoundAccel = true; @@ -325,7 +325,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC, // Deal with the mnemonic character // sTgt = wxT("~"); - nIndex = sFullString.Find(sTgt.c_str()); + nIndex = sFullString.Find(sTgt); if (nIndex != -1) { wxString sTmp = sFullString; @@ -351,7 +351,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC, ::GpiCharStringAt( rDC.GetHPS() ,&vPntStart ,sFullString.length() - ,(PCH)sFullString.c_str() + ,sFullString.char_str() ); if (bFoundMnemonic) { @@ -389,7 +389,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC, ::GpiCharStringAt( rDC.GetHPS() ,&vPntStart ,sAccel.length() - ,(PCH)sAccel.c_str() + ,sAccel.char_str() ); }