From a48a6bc401cd9bd3a27dfe91ec598ac1479ab08d Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 9 Aug 2018 14:00:50 +0100 Subject: bin: Stop copying a delegate This fixes a build warning: ../bin/dconf.vala:310.15-310.18: warning: copying delegates is not supported ../bin/dconf.vala:305.2-305.13: warning: copying delegates is not supported Signed-off-by: Philip Withnall --- bin/dconf.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dconf.vala b/bin/dconf.vala index 9704d4a..349e1ea 100644 --- a/bin/dconf.vala +++ b/bin/dconf.vala @@ -302,7 +302,7 @@ void dconf_complete (string[] args) throws Error { delegate void Command (string[] args) throws Error; struct CommandMapping { - Command func; + unowned Command func; string name; public CommandMapping (string name, Command func) { -- cgit v1.2.1