summaryrefslogtreecommitdiffstats
path: root/src/bindings/swig/wrapped/WrappedInvoker.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-15 20:17:24 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-15 20:17:24 (GMT)
commit0f02e83609309972f01fb72392fb7f96d98b9e01 (patch)
tree4fbf1ca145af597f5212cef158fded22446819d4 /src/bindings/swig/wrapped/WrappedInvoker.h
parent445751d34fae13c231fae3db10cbac6468f003d8 (diff)
downloaduscxml-0f02e83609309972f01fb72392fb7f96d98b9e01.zip
uscxml-0f02e83609309972f01fb72392fb7f96d98b9e01.tar.gz
uscxml-0f02e83609309972f01fb72392fb7f96d98b9e01.tar.bz2
More fixes for language bindings
Diffstat (limited to 'src/bindings/swig/wrapped/WrappedInvoker.h')
-rw-r--r--src/bindings/swig/wrapped/WrappedInvoker.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bindings/swig/wrapped/WrappedInvoker.h b/src/bindings/swig/wrapped/WrappedInvoker.h
index 6251c6e..5e0f39e 100644
--- a/src/bindings/swig/wrapped/WrappedInvoker.h
+++ b/src/bindings/swig/wrapped/WrappedInvoker.h
@@ -52,14 +52,18 @@ public:
virtual void invoke(const InvokeRequest& req) {}
virtual void uninvoke() {}
- virtual WrappedInvoker* create(Interpreter interpreter) {
+ virtual WrappedInvoker* create(const Interpreter& interpreter) {
return new WrappedInvoker();
}
virtual boost::shared_ptr<InvokerImpl> create(InterpreterImpl* interpreter) {
- return boost::shared_ptr<InvokerImpl>(create(interpreter->shared_from_this()));
+ _interpreter = interpreter->shared_from_this();
+ return boost::shared_ptr<InvokerImpl>(create(_interpreter));
}
+private:
+ Interpreter _interpreter;
+
};
}