[gtksourceview: 4/5] words-completion: add 'const' for some GtkTextIter parameters
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 4/5] words-completion: add 'const' for some GtkTextIter parameters
- Date: Sat, 31 May 2014 20:16:52 +0000 (UTC)
commit eb21b42ab133a07dbbb49427d293bff3e6e7d6e5
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat May 31 21:04:13 2014 +0200
words-completion: add 'const' for some GtkTextIter parameters
.../words/gtksourcecompletionwordsbuffer.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index 78d2f3a..6a250b5 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -461,13 +461,13 @@ remove_words_in_region (GtkSourceCompletionWordsBuffer *buffer,
static GtkTextRegion *
compute_remove_region (GtkSourceCompletionWordsBuffer *buffer,
- GtkTextIter start,
- GtkTextIter end)
+ const GtkTextIter *start,
+ const GtkTextIter *end)
{
GtkTextRegion *remove_region = gtk_text_region_new (buffer->priv->buffer);
GtkTextRegionIterator region_iter;
- gtk_text_region_add (remove_region, &start, &end);
+ gtk_text_region_add (remove_region, start, end);
gtk_text_region_get_iterator (buffer->priv->scan_region,
®ion_iter,
@@ -497,8 +497,8 @@ compute_remove_region (GtkSourceCompletionWordsBuffer *buffer,
*/
static void
invalidate_region (GtkSourceCompletionWordsBuffer *buffer,
- GtkTextIter *start,
- GtkTextIter *end)
+ const GtkTextIter *start,
+ const GtkTextIter *end)
{
GtkTextIter start_iter = *start;
GtkTextIter end_iter = *end;
@@ -514,7 +514,7 @@ invalidate_region (GtkSourceCompletionWordsBuffer *buffer,
gtk_text_iter_forward_to_line_end (&end_iter);
}
- remove_region = compute_remove_region (buffer, start_iter, end_iter);
+ remove_region = compute_remove_region (buffer, &start_iter, &end_iter);
remove_words_in_region (buffer, remove_region);
gtk_text_region_destroy (remove_region);
@@ -522,8 +522,8 @@ invalidate_region (GtkSourceCompletionWordsBuffer *buffer,
static void
add_to_scan_region (GtkSourceCompletionWordsBuffer *buffer,
- GtkTextIter *start,
- GtkTextIter *end)
+ const GtkTextIter *start,
+ const GtkTextIter *end)
{
GtkTextIter start_iter = *start;
GtkTextIter end_iter = *end;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]