From 9bc56c5cb4cfa43a62360a3ce4f90a295b501533 Mon Sep 17 00:00:00 2001 From: myfreeweb Date: Thu, 11 Jul 2019 13:04:58 +0300 Subject: [PATCH] Use & when passing function references to HashTable constructor ldc 1.16.0 complains about trying to call `g_str_hash` / `g_str_equal` with no arguments --- source/gx/tilix/terminal/password.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gx/tilix/terminal/password.d b/source/gx/tilix/terminal/password.d index 42bb9d15..fbefc61b 100644 --- a/source/gx/tilix/terminal/password.d +++ b/source/gx/tilix/terminal/password.d @@ -172,7 +172,7 @@ private: string uuid = randomUUID().toString(); pending[uuid] = c; import gtkc.glib; - HashTable attributes = new HashTable(g_str_hash, g_str_equal); + HashTable attributes = new HashTable(&g_str_hash, &g_str_equal); immutable(char*) uuidz = toStringz(uuid); attributes.insert(cast(void*)attrID, cast(void*)uuidz); attributes.insert(cast(void*)attrDescription, cast(void*)descriptionValue); @@ -285,7 +285,7 @@ private: HashTable createHashTable() { import gtkc.glib; - return new HashTable(g_str_hash, g_str_equal); + return new HashTable(&g_str_hash, &g_str_equal); } void createSchema() {