SF.net SVN: geany:[5785] branches/0.20.1/src

colombanw at users.sourceforge.net colombanw at xxxxx
Mon May 9 17:38:21 UTC 2011


Revision: 5785
          http://geany.svn.sourceforge.net/geany/?rev=5785&view=rev
Author:   colombanw
Date:     2011-05-09 17:38:21 +0000 (Mon, 09 May 2011)

Log Message:
-----------
Make a few variable holding strings constant

Modified Paths:
--------------
    branches/0.20.1/src/tools.c
    branches/0.20.1/src/ui_utils.c

Modified: branches/0.20.1/src/tools.c
===================================================================
--- branches/0.20.1/src/tools.c	2011-05-09 17:38:02 UTC (rev 5784)
+++ branches/0.20.1/src/tools.c	2011-05-09 17:38:21 UTC (rev 5785)
@@ -583,7 +583,8 @@
 	GtkWidget *dialog, *label, *vbox, *table;
 	GeanyDocument *doc;
 	guint chars = 0, lines = 0, words = 0;
-	gchar *text, *range;
+	gchar *text;
+	const gchar *range;
 
 	doc = document_get_current();
 	g_return_if_fail(doc != NULL);

Modified: branches/0.20.1/src/ui_utils.c
===================================================================
--- branches/0.20.1/src/ui_utils.c	2011-05-09 17:38:02 UTC (rev 5784)
+++ branches/0.20.1/src/ui_utils.c	2011-05-09 17:38:21 UTC (rev 5785)
@@ -1985,9 +1985,9 @@
 
 typedef struct GeanySharedMenu
 {
-	gchar *menu;
-	gchar *menubar_item;
-	gchar *popup_item;
+	const gchar *menu;
+	const gchar *menubar_item;
+	const gchar *popup_item;
 }
 GeanySharedMenu;
 


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