From 5d5b93bd2a11ba8e6fb5e331f1849640f1153a3b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 7 Jan 2009 16:26:03 +0000 Subject: [PATCH] Rename a variable masking index() The maintainer CFLAGS found another masking of the index() function by an helpless variable. --- clutter/clutter-text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 9f3800354..4b7ae3f13 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -826,7 +826,7 @@ cursor_paint (ClutterText *self) gint n_ranges; gint *ranges; gint i; - gint index; + gint index_; gint maxindex; ClutterUnit y, height; @@ -838,10 +838,10 @@ cursor_paint (ClutterText *self) pango_layout_line_get_x_ranges (line, start_index, end_index, &ranges, &n_ranges); - pango_layout_line_x_to_index (line, 0, &index, NULL); + pango_layout_line_x_to_index (line, 0, &index_, NULL); clutter_text_position_to_coords (self, - bytes_to_offset (utf8, index), + bytes_to_offset (utf8, index_), NULL, &y, &height); for (i = 0; i < n_ranges; i++)