Revision: 5622 http://geany.svn.sourceforge.net/geany/?rev=5622&view=rev Author: colombanw Date: 2011-03-24 16:52:34 +0000 (Thu, 24 Mar 2011)
Log Message: ----------- Make a few variable holding strings constant
Modified Paths: -------------- trunk/src/tools.c trunk/src/ui_utils.c
Modified: trunk/src/tools.c =================================================================== --- trunk/src/tools.c 2011-03-24 16:51:02 UTC (rev 5621) +++ trunk/src/tools.c 2011-03-24 16:52:34 UTC (rev 5622) @@ -584,7 +584,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: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2011-03-24 16:51:02 UTC (rev 5621) +++ trunk/src/ui_utils.c 2011-03-24 16:52:34 UTC (rev 5622) @@ -2015,9 +2015,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.