diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-07-01 14:32:08 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-07-01 14:32:08 +0000 |
commit | 43442af8e3d31ed5561e0d1120f6350bc6261c51 (patch) | |
tree | c9d2eb023accf7f26a46ed931124e2a1d21ae804 /ui/gtk/color_dlg.c | |
parent | ee52f06db9de9cc4533ca279caa2eb1f67fff93e (diff) |
Define certain 'const char *...' arrays as static.
(That is: Don't create the array on the stack each time
the function is called).
Reduces code memory usage and execution time.
(See SVN #50271)
svn path=/trunk/; revision=50295
Diffstat (limited to 'ui/gtk/color_dlg.c')
-rw-r--r-- | ui/gtk/color_dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/color_dlg.c b/ui/gtk/color_dlg.c index b0920a1c7d..b222870cee 100644 --- a/ui/gtk/color_dlg.c +++ b/ui/gtk/color_dlg.c @@ -203,7 +203,7 @@ colorize_dialog_new (char *filter) GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkTreeSelection *selection; - const gchar *titles[] = { "Name", "String" }; + static const gchar *titles[] = { "Name", "String" }; |