From 85d3dffc0e8dfaf6549a730be918aece7afff951 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Tue, 12 Jun 2018 12:26:31 +0200 Subject: [PATCH] libvaladoc: Avoid superfluous references of Rule --- libvaladoc/parser/rule.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.47.2