aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-10-21 22:57:04 +0200
committerRenaud G <renaud@rolisteam.org>2017-10-21 22:57:04 +0200
commitf329a8e39beb732b5685eb01476221b461cc50d1 (patch)
treebb4c2f2860c99d64f453345ec4b439b3bfcb756f /diceparser.cpp
parentc4687ed661a568b0a2ffa5a91e44517619369f89 (diff)
downloadOneRoll-f329a8e39beb732b5685eb01476221b461cc50d1.tar.gz
OneRoll-f329a8e39beb732b5685eb01476221b461cc50d1.zip
-add group into project and use proper variable.
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 27f2a2c..42f46ac 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -171,17 +171,17 @@ bool DiceParser::parseLine(QString str)
str = convertAlias(str);
m_command = str;
- bool keepParsing = readExpression(m_command,newNode);
+ bool keepParsing = readExpression(str,newNode);
if(keepParsing)
{
m_current->setNextNode(newNode);
m_current = getLatestNode(m_current);
- keepParsing =!m_command.isEmpty();
+ keepParsing =!str.isEmpty();
if(keepParsing)
{
// keepParsing =
- readOperator(m_command,m_current);
+ readOperator(str,m_current);
m_current = getLatestNode(m_current);
}
}