Make a few variable holding strings constant

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5622 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Colomban Wendling 2011-03-24 16:52:34 +00:00
parent 4ac3ccbd37
commit 15937490ec
2 changed files with 5 additions and 4 deletions

View File

@ -584,7 +584,8 @@ void tools_word_count(void)
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);

View File

@ -2015,9 +2015,9 @@ static void ui_menu_move(GtkWidget *menu, GtkWidget *old, GtkWidget *new)
typedef struct GeanySharedMenu
{
gchar *menu;
gchar *menubar_item;
gchar *popup_item;
const gchar *menu;
const gchar *menubar_item;
const gchar *popup_item;
}
GeanySharedMenu;