diff options
Diffstat (limited to 'include/diagram/statement.h')
-rw-r--r-- | include/diagram/statement.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/diagram/statement.h b/include/diagram/statement.h index 5cce908..1d44d6a 100644 --- a/include/diagram/statement.h +++ b/include/diagram/statement.h @@ -26,7 +26,8 @@ namespace samb { class Statement { public: - using pointer = std::shared_ptr<Statement>; +// using pointer = std::shared_ptr<Statement>; + using pointer = Statement*; enum Type { PROCESS, @@ -40,6 +41,9 @@ public: const Type type; + template<class... Args> + static pointer make(Type t, Args&& ...args); + Statement(Type t, const QString &text); Statement(Type t, const QString &text, pointer next); virtual ~Statement(); |