X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fcxx%2Fclasses.cpp;h=403499de31697e6a49db9fe17e8e00b4a2fc6adb;hb=b31581f8a8fab97004603ba61c16c3758c14c777;hp=bb7cec690d599c58b9500cfe3228a26451e2350b;hpb=d01d2314879988e9d9ab80872889340e89ec8cc8;p=libsigrok.git 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()),