aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parsingtoolbox.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-08-29 00:05:11 +0200
committerRenaud G <renaud@rolisteam.org>2015-08-29 00:05:11 +0200
commit04423fcd2848c283169f5a6719bd50cf70e14138 (patch)
tree3157bf972a4b619d1819278ad4bfeff76ff7bd17 /parsingtoolbox.cpp
parent3a8b315ab8a448a443cce277f3f26a1996403e06 (diff)
parentda1db7bc2436f94ab288d8da8d98a8209d3d2caa (diff)
downloadOneRoll-04423fcd2848c283169f5a6719bd50cf70e14138.tar.gz
OneRoll-04423fcd2848c283169f5a6719bd50cf70e14138.zip
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'parsingtoolbox.cpp')
-rw-r--r--parsingtoolbox.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp
index f6b1f12..2d26d79 100644
--- a/parsingtoolbox.cpp
+++ b/parsingtoolbox.cpp
@@ -75,7 +75,6 @@ Validator* ParsingToolBox::readValidator(QString& str)
{
Validator* returnVal=NULL;
bool expectSquareBrasket=false;
- bool isOk = true;
if((str.startsWith("[")))
{
str=str.remove(0,1);
@@ -83,11 +82,13 @@ Validator* ParsingToolBox::readValidator(QString& str)
}
BooleanCondition::LogicOperator myLogicOp = BooleanCondition::Equal;
- bool hasReadLogicOperator = readLogicOperator(str,myLogicOp);
+ //bool hasReadLogicOperator =
+ readLogicOperator(str,myLogicOp);
int value=0;
if(readNumber(str,value))
{
+ bool isOk = true;
if(str.startsWith("-"))
{
str=str.remove(0,1);