[valadoc] Fix various compile time warnings



commit 80e49f31d8acc4acb6b56cfd9875badb48ce9b33
Author: Florian Brosch <flo brosch gmail com>
Date:   Mon Jul 11 15:29:07 2011 +0200

    Fix various compile time warnings

 src/libvaladoc/parser/rule.vala |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/libvaladoc/parser/rule.vala b/src/libvaladoc/parser/rule.vala
index b63495c..76cffc2 100644
--- a/src/libvaladoc/parser/rule.vala
+++ b/src/libvaladoc/parser/rule.vala
@@ -66,17 +66,20 @@ public abstract class Valadoc.Rule : Object {
 	public delegate void Action () throws ParserError;
 
 	public Rule set_start (Action action) {
-		_start_action = action;
+		//TODO: Ownership Transfer
+		_start_action = () => { action (); };
 		return this;
 	}
 
 	public Rule set_reduce (Action action) {
-		_reduce_action = action;
+		//TODO: Ownership Transfer
+		_reduce_action = () => { action (); };
 		return this;
 	}
 
 	public Rule set_skip (Action action) {
-		_skip_action = action;
+		//TODO: Ownership Transfer
+		_skip_action = () => { action (); };
 		return this;
 	}
 



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