From b31581f8a8fab97004603ba61c16c3758c14c777 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Fri, 29 Aug 2014 17:35:46 +0100 Subject: [PATCH] C++: Fix hash table initialisation in map_to_hash_variant. --- bindings/cxx/classes.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/cxx/classes.cpp b/bindings/cxx/classes.cpp index bb7cec69..403499de 100644 --- a/bindings/cxx/classes.cpp +++ b/bindings/cxx/classes.cpp @@ -44,8 +44,7 @@ static const char *valid_string(const char *input) static GHashTable *map_to_hash_variant(map input) { auto output = g_hash_table_new_full( - g_variant_hash, g_variant_equal, g_free, - (void (*)(void *))g_variant_unref); + g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref); for (auto entry : input) g_hash_table_insert(output, g_strdup(entry.first.c_str()),