[gtk+] TextView: Be const-correct when passing a pointer
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] TextView: Be const-correct when passing a pointer
- Date: Mon, 27 Mar 2017 18:24:34 +0000 (UTC)
commit b00b7c3b0e852f1027875cd40aba8b406700dbac
Author: Daniel Boles <dboles src gnome org>
Date: Mon Mar 27 19:14:38 2017 +0100
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.
gtk/gtktextview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index a8ad5c2..03fdf97 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -6344,7 +6344,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]