TextView: Be const-correct when passing a pointer

The TextIter is passed by pointer for efficiency. We neither need to
modify it, nor should we leave it possible to accidentally do so. So,
it should be passed as a pointer-to-const.
This commit is contained in:
Daniel Boles 2017-03-27 19:14:38 +01:00
parent 87b579cf2b
commit 08887f0577

View File

@ -6417,7 +6417,7 @@ move_cursor (GtkTextView *text_view,
}
static gboolean
iter_line_is_rtl (GtkTextIter *iter)
iter_line_is_rtl (const GtkTextIter *iter)
{
GtkTextIter start, end;
char *text;