diff options
author | nyamatongwe <unknown> | 2012-04-21 16:03:53 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-04-21 16:03:53 +1000 |
commit | 45d3e865e375e8b1e76045d45323ac795018ebc6 (patch) | |
tree | 340a53a642e36d0690b900edf7425356fb11b227 | |
parent | fa48a920b4520fac4feab563cae0f812ea284dbc (diff) | |
download | scintilla-mirror-45d3e865e375e8b1e76045d45323ac795018ebc6.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) |