Skip to content

Commit 9bc56c5

Browse files
authored
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
1 parent 3617018 commit 9bc56c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/gx/tilix/terminal/password.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private:
172172
string uuid = randomUUID().toString();
173173
pending[uuid] = c;
174174
import gtkc.glib;
175-
HashTable attributes = new HashTable(g_str_hash, g_str_equal);
175+
HashTable attributes = new HashTable(&g_str_hash, &g_str_equal);
176176
immutable(char*) uuidz = toStringz(uuid);
177177
attributes.insert(cast(void*)attrID, cast(void*)uuidz);
178178
attributes.insert(cast(void*)attrDescription, cast(void*)descriptionValue);
@@ -285,7 +285,7 @@ private:
285285

286286
HashTable createHashTable() {
287287
import gtkc.glib;
288-
return new HashTable(g_str_hash, g_str_equal);
288+
return new HashTable(&g_str_hash, &g_str_equal);
289289
}
290290

291291
void createSchema() {

0 commit comments

Comments
 (0)