&ascent, &descent, &overall_return);
else
#endif // 0
- (void)XTextExtents((XFontStruct*) pFontStruct, (char*) (const char*) text, slen, &direction,
+ (void)XTextExtents((XFontStruct*) pFontStruct,
+ wxConstCast(text.c_str(), char),
+ slen, &direction,
&ascent, &descent, &overall_return);
cx = overall_return.width;
else
#endif // 0
XDrawString((Display*) m_display, (Pixmap) m_window->GetBackingPixmap(), (GC) m_gcBacking,
- XLOG2DEV_2 (x), YLOG2DEV_2 (y) + ascent, (char*) (const char*) text, slen);
+ XLOG2DEV_2 (x), YLOG2DEV_2 (y) + ascent,
+ wxConstCast(text.c_str(), char), slen);
}
// restore fill style
else
#endif // 0
(void)XTextExtents((XFontStruct*) pFontStruct,
- (char*)text.c_str(), slen, &direction,
+ wxConstCast(text.c_str(), char),
+ slen, &direction,
&ascent, &descent, &overall_return);
cx = overall_return.width;
&ascent, &descent2, &overall);
else
#endif // 0
- XTextExtents((XFontStruct*) pFontStruct, (char*) (const char*) string, slen, &direction,
+ XTextExtents((XFontStruct*) pFontStruct,
+ wxConstCast(string.c_str(), char), slen, &direction,
&ascent, &descent2, &overall);
if (width) *width = XDEV2LOGREL (overall.width);