aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-08-12 23:54:31 +0200
committerRenaud G <renaud@rolisteam.org>2018-08-12 23:54:31 +0200
commitacb001bc1909d873a37fbe1c8cbabade76a8015e (patch)
tree224a3b06e565bd479cd2dbd1ac7a8cddf317b626 /diceparser.cpp
parent0490332a1e85458059aa761c7a0769fe2fe985c7 (diff)
downloadOneRoll-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 'diceparser.cpp')
-rw-r--r--diceparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 1a065b7..41a91e5 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -1330,7 +1330,7 @@ void DiceParser::setPathToHelp(QString l)
{
m_helpPath = l;
}
-void DiceParser::setVariableDictionary(QHash<QString,QString>* variables)
+void DiceParser::setVariableDictionary(const QHash<QString,QString>& variables)
{
ParsingToolBox::setVariableHash(variables);
}