diff options
| author | 2018-08-12 23:54:31 +0200 | |
|---|---|---|
| committer | 2018-08-12 23:54:31 +0200 | |
| commit | acb001bc1909d873a37fbe1c8cbabade76a8015e (patch) | |
| tree | 224a3b06e565bd479cd2dbd1ac7a8cddf317b626 /parsingtoolbox.h | |
| parent | 0490332a1e85458059aa761c7a0769fe2fe985c7 (diff) | |
| download | OneRoll-acb001bc1909d873a37fbe1c8cbabade76a8015e.tar.gz OneRoll-acb001bc1909d873a37fbe1c8cbabade76a8015e.zip | |
Change management of variable (ref instead of pointer)
using static is a bad idea as more and more diceparser are now use in
rolisteam.
Diffstat (limited to 'parsingtoolbox.h')
| -rw-r--r-- | parsingtoolbox.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parsingtoolbox.h b/parsingtoolbox.h index 4a88732..be0b0eb 100644 --- a/parsingtoolbox.h +++ b/parsingtoolbox.h @@ -178,8 +178,8 @@ public: static void readPainterParameter(PainterNode *painter, QString &str); - static QHash<QString, QString> *getVariableHash(); - static void setVariableHash(QHash<QString, QString> *variableHash); + static QHash<QString, QString> getVariableHash(); + static void setVariableHash(const QHash<QString, QString> &variableHash); /** * @brief readConditionType * @param str @@ -202,7 +202,7 @@ private: QHash<QString,Die::ArithmeticOperator>* m_arithmeticOperation; - static QHash<QString,QString>* m_variableHash; + static QHash<QString,QString> m_variableHash; static std::vector<ExecutionNode*>* m_startNodes; }; |