diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-01-05 12:06:36 +0000 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-02-16 05:10:49 +0000 |
commit | 95dee44a77c8779776ce602b09fb33c703c4a32e (patch) | |
tree | a51cf7022e234111608facbe550b9795c96696e9 /ui/gtk/gui_utils.c | |
parent | 076784cdaee4721e4bce94824b5b92db9888d28a (diff) |
const gpointer -> gconstpointer
'const gpointer' is the same as 'void *const'. Replace with gconstpointer
where straightforward (assuming that was the intent) and use gpointer everywhere
else for clarity (that does not change *API* constness contract; it just means
a variable is not declared immutable inside the called funtion).
Change-Id: Iad2ef13205bfb4ff0056b2bce056353b58942267
Reviewed-on: https://code.wireshark.org/review/13945
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/gtk/gui_utils.c')
-rw-r--r-- | ui/gtk/gui_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c index 66127274b0..5ff81a280f 100644 --- a/ui/gtk/gui_utils.c +++ b/ui/gtk/gui_utils.c @@ -1601,8 +1601,8 @@ GtkTreeIter ws_combo_box_append_text_and_pointer_full(GtkComboBox *combo_box, GtkTreeIter *parent_iter, const gchar *text, - const gpointer ptr, - const gboolean sensitive) + gconstpointer ptr, + gboolean sensitive) { GtkTreeIter iter; GtkTreeStore *store; @@ -1629,7 +1629,7 @@ ws_combo_box_append_text_and_pointer_full(GtkComboBox *combo_box, GtkTreeIter ws_combo_box_append_text_and_pointer(GtkComboBox *combo_box, const gchar *text, - const gpointer ptr) + gconstpointer ptr) { return ws_combo_box_append_text_and_pointer_full(combo_box, NULL, text, ptr, TRUE); } |