diff options
Diffstat (limited to 'src/uscxml/interpreter/InterpreterImpl.h')
-rw-r--r-- | src/uscxml/interpreter/InterpreterImpl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/interpreter/InterpreterImpl.h b/src/uscxml/interpreter/InterpreterImpl.h index 26f117d..d6dbd1a 100644 --- a/src/uscxml/interpreter/InterpreterImpl.h +++ b/src/uscxml/interpreter/InterpreterImpl.h @@ -50,8 +50,8 @@ class USCXML_API InterpreterImpl : public MicroStepCallbacks, public DataModelCallbacks, public ContentExecutorCallbacks, - public DelayedEventQueueCallbacks -// public std::enable_shared_from_this<InterpreterImpl> + public DelayedEventQueueCallbacks, + public std::enable_shared_from_this<InterpreterImpl> { public: enum Binding { @@ -140,8 +140,8 @@ public: return _monitors; } - virtual InterpreterImpl* getInterpreter() { - return this; + virtual Interpreter getInterpreter() { + return Interpreter(shared_from_this()); } /** |