]> ruin.nu Git - popboot.git/blobdiff - node.h
references instead of copies
[popboot.git] / node.h
diff --git a/node.h b/node.h
index 0d9cae6fa0229ce432dfb21497452adfa2075e16..7bcf3a8c371338375df7d42604ce5d0ddf98ce74 100644 (file)
--- a/node.h
+++ b/node.h
@@ -9,8 +9,8 @@ class Node {
        public:
                Node(Action action);
                void addChild(Node* node);
-               Action action();
-               void execute(literals effects);
+               const Action& action() const;
+               void execute(const literals& effects);
 
        protected:
                Action _action;