From 0eabd3c635380a69982b08178391ba8e6f04382b Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Fri, 6 Apr 2007 22:52:16 +0000 Subject: [PATCH] Compilation fix for wxCStrData handling. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/ownerdrw.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() ); } -- 2.47.2