]> Dogcows Code - chaz/openbox/commitdiff
rm consts that wont compile on some libfreetype's
authorDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 01:31:47 +0000 (01:31 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 01:31:47 +0000 (01:31 +0000)
otk/font.cc

index ac76696e8ebedfb69b6ff1f13ae5ddccc968536d..ee58ed19fbc09df559289d0036561ef0d3672f67 100644 (file)
@@ -100,11 +100,11 @@ void BFont::drawString(XftDraw *d, int x, int y, const BColor &color,
     if (utf8)
       XftDrawStringUtf8(d, &c, _xftfont, x + _offset,
                         _xftfont->ascent + y + _offset,
-                        (const FcChar8*)string.c_str(), string.size());
+                        (FcChar8*)string.c_str(), string.size());
     else
       XftDrawString8(d, &c, _xftfont, x + _offset,
                      _xftfont->ascent + y + _offset,
-                     (const FcChar8*)string.c_str(), string.size());
+                     (FcChar8*)string.c_str(), string.size());
   }
     
   XftColor c;
@@ -116,10 +116,10 @@ void BFont::drawString(XftDraw *d, int x, int y, const BColor &color,
 
   if (utf8)
     XftDrawStringUtf8(d, &c, _xftfont, x, _xftfont->ascent + y,
-                      (const FcChar8*)string.c_str(), string.size());
+                      (FcChar8*)string.c_str(), string.size());
   else
     XftDrawString8(d, &c, _xftfont, x, _xftfont->ascent + y,
-                   (const FcChar8*)string.c_str(), string.size());
+                   (FcChar8*)string.c_str(), string.size());
 
   return;
 }
@@ -131,10 +131,10 @@ unsigned int BFont::measureString(const string &string, bool utf8) const
 
   if (utf8)
     XftTextExtentsUtf8(OBDisplay::display, _xftfont,
-                       (const FcChar8*)string.c_str(), string.size(), &info);
+                       (FcChar8*)string.c_str(), string.size(), &info);
   else
     XftTextExtents8(OBDisplay::display, _xftfont,
-                    (const FcChar8*)string.c_str(), string.size(), &info);
+                    (FcChar8*)string.c_str(), string.size(), &info);
 
   return info.xOff + (_shadow ? _offset : 0);
 }
This page took 0.028501 seconds and 4 git commands to generate.