Be consistent use and g_string_chunk_insert_const() in stead of
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 9 Sep 2009 19:34:14 +0000 (19:34 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 9 Sep 2009 19:34:14 +0000 (19:34 +0000)
g_string_chunk_insert() as in expert_dlg.c

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29827 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/expert_comp_table.c

index 5de80e74ac35a49f4dd02fadf6a43bec58aa1df1..4534009fa2dd3dfe68cdd090bf5fb8f592ed5bc2 100644 (file)
@@ -610,8 +610,8 @@ init_error_table_row(error_equiv_table *err, const expert_info_t *expert_data)
         procedure = &g_array_index(err->procs_array, error_procedure_t, row);
         
         /* Create the item in our memory table */
-        procedure->entries[0]=(char *)g_string_chunk_insert(err->text, expert_data->protocol);    /* Protocol */
-        procedure->entries[1]=(char *)g_string_chunk_insert(err->text, expert_data->summary);     /* Summary */
+        procedure->entries[0]=(char *)g_string_chunk_insert_const(err->text, expert_data->protocol);    /* Protocol */
+        procedure->entries[1]=(char *)g_string_chunk_insert_const(err->text, expert_data->summary);     /* Summary */
 
         /* Create a new item in our tree view */
         store = GTK_TREE_STORE(gtk_tree_view_get_model(err->tree_view)); /* Get store */
@@ -630,7 +630,7 @@ init_error_table_row(error_equiv_table *err, const expert_info_t *expert_data)
             g_assert(PITEM_FINFO(expert_data->pitem));
             filter = proto_construct_match_selected_string(PITEM_FINFO(expert_data->pitem), NULL);
             if (filter != NULL)
-                procedure->fvalue_value = g_string_chunk_insert(err->text, filter);
+                procedure->fvalue_value = g_string_chunk_insert_const(err->text, filter);
         }
         /* Store the updated count of events */
         err->num_procs = ++old_num_procs;