]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/font.cpp
Move wxCocoa's wxFontRefData from the header to the implementation file.
[wxWidgets.git] / src / motif / font.cpp
index d378180775f9def1b03973227e678c597a2372dc..fc503f190f49488c7fc36192871bba2a9821b375 100644 (file)
@@ -679,7 +679,8 @@ void wxGetTextExtent(WXDisplay* display, const wxFont& font,
     XCharStruct overall;
     int slen = str.length();
 
-    XTextExtents((XFontStruct*) pFontStruct, (char*) str.mb_str(), slen,
+    XTextExtents((XFontStruct*) pFontStruct,
+                 wx_const_cast(char*, (const char *)str.mb_str()), slen,
                  &direction, &ascent2, &descent2, &overall);
 
     if ( width )