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
This commit is contained in:
parent
f28829a653
commit
278591115d
@ -38,7 +38,7 @@
|
|||||||
/* for the navigation history queue */
|
/* for the navigation history queue */
|
||||||
typedef struct
|
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;
|
gint pos;
|
||||||
} filepos;
|
} 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;
|
filepos *npos;
|
||||||
guint i;
|
guint i;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user