SF.net SVN: geany: [2511] trunk/src/navqueue.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Apr 22 12:59:10 UTC 2008
Revision: 2511
http://geany.svn.sourceforge.net/geany/?rev=2511&view=rev
Author: ntrel
Date: 2008-04-22 05:59:08 -0700 (Tue, 22 Apr 2008)
Log Message:
-----------
Add const qualifier for filepos::file to indicate it is just a reference to the document's filename, not a copy.
Modified Paths:
--------------
trunk/src/navqueue.c
Modified: trunk/src/navqueue.c
===================================================================
--- trunk/src/navqueue.c 2008-04-20 11:51:28 UTC (rev 2510)
+++ trunk/src/navqueue.c 2008-04-22 12:59:08 UTC (rev 2511)
@@ -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 @@
}
-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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list