more OS/2 compilation fixes
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 2 May 2007 20:38:52 +0000 (20:38 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 2 May 2007 20:38:52 +0000 (20:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/font.cpp
src/os2/ownerdrw.cpp

index 16c1473d6a1b4363faca502800127064f27df454..4ed240007ce5cbb5e45fa9581e478c58cb9d1b74 100644 (file)
@@ -857,7 +857,7 @@ wxString wxNativeFontInfo::ToString() const
                 fa.usCodePage,
                 fa.lMatch,
                 fn.usWeightClass,
-                fa.szFacename);
+                (char *)fa.szFacename);
     return sStr;
 } // end of wxNativeFontInfo::ToString
 
index d5d0db57c3c65a008f10754800aed9dfbe6c0c51..12790b51ceb709c55bece245e4f9b07bcc1d2e0c 100644 (file)
@@ -351,7 +351,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
     ::GpiCharStringAt( rDC.GetHPS()
                       ,&vPntStart
                       ,sFullString.length()
-                      ,sFullString.wx_str()
+                      ,sFullString.char_str()
                      );
     if (bFoundMnemonic)
     {
@@ -389,7 +389,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
         ::GpiCharStringAt( rDC.GetHPS()
                           ,&vPntStart
                           ,sAccel.length()
-                          ,sAccel.wx_str()
+                          ,sAccel.char_str()
                          );
     }