forked from AuroraMiddleware/gtk
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:
parent
87b579cf2b
commit
08887f0577
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user