From 278591115d86bcffee44289e34c53f01b23d1e83 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Tue, 22 Apr 2008 12:59:08 +0000 Subject: [PATCH] Add const qualifier for filepos::file to indicate it is just a reference to the document's filename, not a copy. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2511 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/navqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navqueue.c b/src/navqueue.c index 385610d67..1341151a6 100644 --- a/src/navqueue.c +++ b/src/navqueue.c @@ -38,7 +38,7 @@ /* for the navigation history queue */ typedef struct { - gchar *file; /* This is the document's filename, in UTF-8 */ + const gchar *file; /* This is the document's filename, in UTF-8 */ gint pos; } filepos; @@ -106,7 +106,7 @@ queue_pos_matches(guint queue_pos, const gchar *fname, gint pos) } -static void add_new_position(gchar *utf8_filename, gint pos) +static void add_new_position(const gchar *utf8_filename, gint pos) { filepos *npos; guint i;