diff options
author | nyamatongwe <devnull@localhost> | 2012-04-21 16:03:53 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-04-21 16:03:53 +1000 |
commit | e62d19cedcb790c79765d1f0cc096b494930a2b0 (patch) | |
tree | 05836c420f549ef76edd9058f2a4ceb4802d5d13 | |
parent | 52c72dee14c0a6a5127d319759cfd427059505e2 (diff) | |
download | scintilla-mirror-e62d19cedcb790c79765d1f0cc096b494930a2b0.tar.gz |
Use C++ casts instead of C casts to avoid warnings from cppcheck.
-rw-r--r-- | gtk/PlatGTK.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index b7ce38568..acaf60a42 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1355,7 +1355,7 @@ struct ListImage { }; static void list_image_free(gpointer, gpointer value, gpointer) { - ListImage *list_image = (ListImage *) value; + ListImage *list_image = static_cast<ListImage *>(value); if (list_image->pixbuf) g_object_unref(list_image->pixbuf); g_free(list_image); @@ -1659,8 +1659,8 @@ static void init_pixmap(ListImage *list_image) { void ListBoxX::Append(char *s, int type) { ListImage *list_image = NULL; if ((type >= 0) && pixhash) { - list_image = (ListImage *) g_hash_table_lookup((GHashTable *) pixhash - , (gconstpointer) GINT_TO_POINTER(type)); + list_image = static_cast<ListImage *>(g_hash_table_lookup((GHashTable *) pixhash + , (gconstpointer) GINT_TO_POINTER(type))); } GtkTreeIter iter; GtkListStore *store = @@ -1825,8 +1825,8 @@ void ListBoxX::RegisterRGBA(int type, RGBAImage *image) { if (!pixhash) { pixhash = g_hash_table_new(g_direct_hash, g_direct_equal); } - ListImage *list_image = (ListImage *) g_hash_table_lookup((GHashTable *) pixhash, - (gconstpointer) GINT_TO_POINTER(type)); + ListImage *list_image = static_cast<ListImage *>(g_hash_table_lookup((GHashTable *) pixhash, + (gconstpointer) GINT_TO_POINTER(type))); if (list_image) { // Drop icon already registered if (list_image->pixbuf) |