Skip to content

Commit

Permalink
Use & when passing function references to HashTable constructor
Browse files Browse the repository at this point in the history
ldc 1.16.0 complains about trying to call `g_str_hash` / `g_str_equal` with no arguments
  • Loading branch information
valpackett authored Jul 11, 2019
1 parent 3617018 commit 9bc56c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/gx/tilix/terminal/password.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 9bc56c5

Please sign in to comment.