aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--diceparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 0e2b45c..2db7bcd 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -579,7 +579,7 @@ QString DiceParser::getDiceCommand() const
bool DiceParser::hasIntegerResultNotInFirst()
{
- bool result;
+ bool result= false;
for(auto node : m_startNodes)
{
result |= hasResultOfType(Result::SCALAR,node);
@@ -589,7 +589,7 @@ bool DiceParser::hasIntegerResultNotInFirst()
bool DiceParser::hasDiceResult()
{
- bool result;
+ bool result= false;
for(auto node : m_startNodes)
{
result |= hasResultOfType(Result::DICE_LIST,node);
@@ -598,7 +598,7 @@ bool DiceParser::hasDiceResult()
}
bool DiceParser::hasStringResult()
{
- bool result;
+ bool result = false;
for(auto node : m_startNodes)
{
result |= hasResultOfType(Result::STRING,node);