[dconf: 3/8] bin: Stop copying a delegate



commit a48a6bc401cd9bd3a27dfe91ec598ac1479ab08d
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Aug 9 14:00:50 2018 +0100

    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 <withnall endlessm com>

 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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]