summaryrefslogtreecommitdiff
path: root/ui/gtk/proto_dlg.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-07-01 14:32:08 +0000
committerBill Meier <wmeier@newsguy.com>2013-07-01 14:32:08 +0000
commit43442af8e3d31ed5561e0d1120f6350bc6261c51 (patch)
treec9d2eb023accf7f26a46ed931124e2a1d21ae804 /ui/gtk/proto_dlg.c
parentee52f06db9de9cc4533ca279caa2eb1f67fff93e (diff)
downloadwireshark-43442af8e3d31ed5561e0d1120f6350bc6261c51.tar.gz
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/proto_dlg.c')
-rw-r--r--ui/gtk/proto_dlg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/proto_dlg.c b/ui/gtk/proto_dlg.c
index 8ff94896c0..f8db18a62f 100644
--- a/ui/gtk/proto_dlg.c
+++ b/ui/gtk/proto_dlg.c
@@ -100,7 +100,7 @@ build_heur_dissectors_treeview(void)
GtkWidget *bbox, *proto_list, *label, *proto_sw, *proto_vb, *button,
*ok_bt, *save_bt, *cancel_bt;
- const gchar *titles[] = { "Status", "Heuristic Protocol", "Description" };
+ static const gchar *titles[] = { "Status", "Heuristic Protocol", "Description" };
GtkListStore *proto_store;
GtkCellRenderer *proto_rend;
GtkTreeViewColumn *proto_col;
@@ -232,7 +232,7 @@ build_protocols_treeview(void)
GtkWidget *bbox, *proto_list, *label, *proto_sw, *proto_vb, *button,
*ok_bt, *apply_bt, *save_bt, *cancel_bt, *help_bt;
- const gchar *titles[] = { "Status", "Protocol", "Description" };
+ static const gchar *titles[] = { "Status", "Protocol", "Description" };
GtkListStore *proto_store;
GtkCellRenderer *proto_rend;
GtkTreeViewColumn *proto_col;