diff options
| author | 2017-12-20 00:48:36 +0100 | |
|---|---|---|
| committer | 2017-12-20 00:48:36 +0100 | |
| commit | dd3e2596a8f9504ad8359f65fd1f420ccd8ad201 (patch) | |
| tree | a208d1aff4d64049462666b108d3c31b532953e7 /diceparser.cpp | |
| parent | 095e1e5016369680dd320036cb1456df54b40a1a (diff) | |
| download | OneRoll-dd3e2596a8f9504ad8359f65fd1f420ccd8ad201.tar.gz OneRoll-dd3e2596a8f9504ad8359f65fd1f420ccd8ad201.zip | |
-fix windows behaviour
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 6 |
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); |