diff options
Diffstat (limited to 'project2/ut/testScriptNode.h')
| -rw-r--r-- | project2/ut/testScriptNode.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/project2/ut/testScriptNode.h b/project2/ut/testScriptNode.h index d85f6db..1425c14 100644 --- a/project2/ut/testScriptNode.h +++ b/project2/ut/testScriptNode.h @@ -2,8 +2,9 @@ #define TESTSCRIPTNODE_H #include <scripts.h> +#include <visibility.h> -class TestScriptNode : public ScriptNode { +class DLL_PUBLIC TestScriptNode : public ScriptNode { public: typedef std::map<std::string, VariableType> Vars; @@ -16,8 +17,8 @@ class TestScriptNode : public ScriptNode { ScriptNodes childrenIn(const Glib::ustring & sub) const; bool valueExists(const Glib::ustring & name) const; bool applyValue(const Glib::ustring & name, VariableType & target, ExecContext *) const; - VariableImpl * variable(const boost::optional<Glib::ustring> & defaultSource = boost::optional<Glib::ustring>()) const; - VariableImpl * variable(const Glib::ustring & name) const; + std::shared_ptr<VariableImpl> variable(const boost::optional<Glib::ustring> & defaultSource = boost::optional<Glib::ustring>()) const; + std::shared_ptr<VariableImpl> variable(const Glib::ustring & name) const; void composeWithCallbacks(const LiteralCallback &, const NodeCallback &) const; private: |
