From: Rico Tzschichholz Date: Tue, 12 Jun 2018 10:26:31 +0000 (+0200) Subject: libvaladoc: Avoid superfluous references of Rule X-Git-Tag: 0.41.90~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fkeep-around%2F85d3dffc0e8dfaf6549a730be918aece7afff951;p=thirdparty%2Fvala.git libvaladoc: Avoid superfluous references of Rule --- diff --git a/libvaladoc/parser/rule.vala b/libvaladoc/parser/rule.vala index 88be423c7..410eef14b 100644 --- a/libvaladoc/parser/rule.vala +++ b/libvaladoc/parser/rule.vala @@ -64,19 +64,19 @@ public abstract class Valadoc.Rule : Object { public delegate void Action () throws ParserError; - public Rule set_start (Action action) { + public unowned Rule set_start (Action action) { //TODO: Ownership Transfer _start_action = () => { action (); }; return this; } - public Rule set_reduce (Action action) { + public unowned Rule set_reduce (Action action) { //TODO: Ownership Transfer _reduce_action = () => { action (); }; return this; } - public Rule set_skip (Action action) { + public unowned Rule set_skip (Action action) { //TODO: Ownership Transfer _skip_action = () => { action (); }; return this;