From 2876df499fe9e153571efc3d8a9c36e325c872f6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 17 Aug 2021 15:05:03 -0400 Subject: Add a few missing const We should only pass char * when we actually modify the string. Everything else is const char *. --- pango/glyphstring.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'pango/glyphstring.c') diff --git a/pango/glyphstring.c b/pango/glyphstring.c index 87c8a069..e937549a 100644 --- a/pango/glyphstring.c +++ b/pango/glyphstring.c @@ -373,12 +373,12 @@ pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs, */ void pango_glyph_string_index_to_x (PangoGlyphString *glyphs, - char *text, - int length, - PangoAnalysis *analysis, - int index, - gboolean trailing, - int *x_pos) + const char *text, + int length, + PangoAnalysis *analysis, + int index, + gboolean trailing, + int *x_pos) { int i; int start_xpos = 0; @@ -504,12 +504,12 @@ pango_glyph_string_index_to_x (PangoGlyphString *glyphs, */ void pango_glyph_string_x_to_index (PangoGlyphString *glyphs, - char *text, - int length, - PangoAnalysis *analysis, - int x_pos, - int *index, - gboolean *trailing) + const char *text, + int length, + PangoAnalysis *analysis, + int x_pos, + int *index, + gboolean *trailing) { int i; int start_xpos = 0; -- cgit v1.2.1