diff options
| author | 2017-11-18 23:42:04 +0100 | |
|---|---|---|
| committer | 2017-11-18 23:53:40 +0100 | |
| commit | 49b03bf175dc05e565773058d41e3f071b15c040 (patch) | |
| tree | 7ece32595d8d58f9514eac88a63d280396612c33 /diceparser.cpp | |
| parent | cedc70618afa6826d409a64078ea1a8ede4af06c (diff) | |
| download | OneRoll-49b03bf175dc05e565773058d41e3f071b15c040.tar.gz OneRoll-49b03bf175dc05e565773058d41e3f071b15c040.zip | |
diceparser on window display
fix bug on display when you use windows
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 e57a93c..0d661bd 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -565,7 +565,7 @@ QString DiceParser::getDiceCommand() const bool DiceParser::hasIntegerResultNotInFirst() { - bool result; + bool result=false; for(auto node : m_startNodes) { result |= hasResultOfType(Result::SCALAR,node); @@ -575,7 +575,7 @@ bool DiceParser::hasIntegerResultNotInFirst() bool DiceParser::hasDiceResult() { - bool result; + bool result=false; for(auto node : m_startNodes) { result |= hasResultOfType(Result::DICE_LIST,node); @@ -584,7 +584,7 @@ bool DiceParser::hasDiceResult() } bool DiceParser::hasStringResult() { - bool result; + bool result=false; for(auto node : m_startNodes) { result |= hasResultOfType(Result::STRING,node); |