diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-10 22:21:54 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:28 +0200 |
commit | d8358c6ef0c05dad211ad273dc669fae94884441 (patch) | |
tree | f5ac8c794c48782b6712b38c61cfd6ea254a40be /nx-X11/lib/X11/utf8Wrap.c | |
parent | e667b9054308dd2033d3771a0656dd485286e855 (diff) | |
download | nx-libs-d8358c6ef0c05dad211ad273dc669fae94884441.tar.gz nx-libs-d8358c6ef0c05dad211ad273dc669fae94884441.tar.bz2 nx-libs-d8358c6ef0c05dad211ad273dc669fae94884441.zip |
xlibi18n: Fix a bunch of const cast warnings
Add const qualifiers to casts where needed, remove other casts that
are no longer needed.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/utf8Wrap.c')
-rw-r--r-- | nx-X11/lib/X11/utf8Wrap.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/nx-X11/lib/X11/utf8Wrap.c b/nx-X11/lib/X11/utf8Wrap.c index 82967b0b1..24cb4494c 100644 --- a/nx-X11/lib/X11/utf8Wrap.c +++ b/nx-X11/lib/X11/utf8Wrap.c @@ -123,7 +123,7 @@ Xutf8DrawString( int text_len) { (void)(*font_set->methods->utf8_draw_string) (dpy, d, font_set, gc, x, y, - (char *)text, text_len); + text, text_len); } @@ -139,7 +139,7 @@ Xutf8DrawImageString( int text_len) { (*font_set->methods->utf8_draw_image_string) (dpy, d, font_set, gc, x, y, - (char *)text, text_len); + text, text_len); } int @@ -148,8 +148,7 @@ Xutf8TextEscapement( _Xconst char *text, int text_len) { - return (*font_set->methods->utf8_escapement) (font_set, - (char *)text, text_len); + return (*font_set->methods->utf8_escapement) (font_set, text, text_len); } int @@ -160,8 +159,7 @@ Xutf8TextExtents( XRectangle *overall_ink_extents, XRectangle *overall_logical_extents) { - return (*font_set->methods->utf8_extents) (font_set, - (char *)text, text_len, + return (*font_set->methods->utf8_extents) (font_set, text, text_len, overall_ink_extents, overall_logical_extents); } @@ -179,7 +177,7 @@ Xutf8TextPerCharExtents( XRectangle *max_logical_extents) { return (*font_set->methods->utf8_extents_per_char) - (font_set, (char *)text, text_len, + (font_set, text, text_len, ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, max_ink_extents, max_logical_extents); } |