From 9d0c052758faedd3f3acaf350777cb4fa35bd44b Mon Sep 17 00:00:00 2001 From: myfreeweb Date: Thu, 11 Jul 2019 13:04:58 +0300 Subject: [PATCH 1/2] 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 42bb9d15a..fbefc61b5 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() { From 525d995312cead04799ed27cc6fcbb62a66e6d2e Mon Sep 17 00:00:00 2001 From: Greg V Date: Mon, 25 Nov 2019 22:55:27 +0300 Subject: [PATCH 2/2] Fix shared keyword for ldc 1.18 /usr/local/include/d/object.d(3219,36): Error: cannot implicitly convert expression aa of type shared(ProcessStatus[int]) to const(shared(ProcessStatus)[int]) ../source/gx/tilix/terminal/monitor.d(46,46): Error: template instance object.values!(shared(ProcessStatus[int]), shared(ProcessStatus), int) error instantiating --- source/gx/tilix/terminal/monitor.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gx/tilix/terminal/monitor.d b/source/gx/tilix/terminal/monitor.d index affc4b86b..6705809b6 100644 --- a/source/gx/tilix/terminal/monitor.d +++ b/source/gx/tilix/terminal/monitor.d @@ -128,7 +128,7 @@ enum SLEEP_CONSTANT_MS = 300; /** * List of processes being monitored. */ -shared ProcessStatus[GPid] processes; +shared(ProcessStatus)[GPid] processes; void monitorProcesses(int sleep, Tid tid) { bool abort = false;