aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-11-23 17:26:13 +0100
committerRenaud G <renaud@rolisteam.org>2017-11-23 17:26:13 +0100
commit4eac628e2a9eadb08e2c9e673a6f41aea7a58205 (patch)
treec32dc378d1f4f0fbfcfd5115d67b1d375f861fa4 /diceparser.cpp
parent95db07d62e7f9808ce3ed42335c5175db0f10f11 (diff)
parentddf524d6f0de517551d21e73b81abdf724a9ca35 (diff)
downloadOneRoll-4eac628e2a9eadb08e2c9e673a6f41aea7a58205.tar.gz
OneRoll-4eac628e2a9eadb08e2c9e673a6f41aea7a58205.zip
Merge branch 'master' of github.com:Rolisteam/DiceParser
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 b4ea3be..902f6ba 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -567,7 +567,7 @@ QString DiceParser::getDiceCommand() const
bool DiceParser::hasIntegerResultNotInFirst()
{
- bool result;
+ bool result=false;
for(auto node : m_startNodes)
{
result |= hasResultOfType(Result::SCALAR,node);
@@ -577,7 +577,7 @@ bool DiceParser::hasIntegerResultNotInFirst()
bool DiceParser::hasDiceResult()
{
- bool result;
+ bool result=false;
for(auto node : m_startNodes)
{
result |= hasResultOfType(Result::DICE_LIST,node);
@@ -586,7 +586,7 @@ bool DiceParser::hasDiceResult()
}
bool DiceParser::hasStringResult()
{
- bool result;
+ bool result=false;
for(auto node : m_startNodes)
{
result |= hasResultOfType(Result::STRING,node);