diff options
| author | 2016-01-10 17:55:32 +0100 | |
|---|---|---|
| committer | 2016-01-10 17:55:32 +0100 | |
| commit | 7df15a3d41d87bbed9155a5cff2fda70acbf2f0e (patch) | |
| tree | 12acda80f00901f06ec72e77a2ac3aab9e03f9b2 /parsingtoolbox.cpp | |
| parent | 20812f196cfba490952d2e148b4e321c10cbad7e (diff) | |
| parent | db15e41502743d1124062eddb8d2bb3617e2593c (diff) | |
| download | OneRoll-7df15a3d41d87bbed9155a5cff2fda70acbf2f0e.tar.gz OneRoll-7df15a3d41d87bbed9155a5cff2fda70acbf2f0e.zip | |
merge MergeOp into master
Diffstat (limited to 'parsingtoolbox.cpp')
| -rw-r--r-- | parsingtoolbox.cpp | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp index d511e44..495ae6e 100644 --- a/parsingtoolbox.cpp +++ b/parsingtoolbox.cpp @@ -80,10 +80,6 @@ ParsingToolBox::~ParsingToolBox() Validator* ParsingToolBox::readValidator(QString& str) { Validator* returnVal=NULL; - - bool isOk = true; - - BooleanCondition::LogicOperator myLogicOp = BooleanCondition::Equal; bool hasReadLogicOperator = readLogicOperator(str,myLogicOp); qint64 value=0; @@ -96,41 +92,18 @@ Validator* ParsingToolBox::readValidator(QString& str) qint64 end=0; if(readNumber(str,end)) { - /* if(expectSquareBrasket) - { - if(str.startsWith("]")) - { - str=str.remove(0,1); - isOk=true; - } - else - { - isOk=false; - } - }*/ - if(isOk) - { - str=str.remove(0,1); - Range* range = new Range(); - range->setValue(value,end); - returnVal = range; - } + str=str.remove(0,1); + Range* range = new Range(); + range->setValue(value,end); + returnVal = range; } } else { - /* if((expectSquareBrasket)&&(str.startsWith("]"))) - { - str=str.remove(0,1); - isOk=true; - }*/ - //if(isOk) - { - BooleanCondition* condition = new BooleanCondition(); - condition->setValue(value); - condition->setOperator(myLogicOp); - returnVal = condition; - } + BooleanCondition* condition = new BooleanCondition(); + condition->setValue(value); + condition->setOperator(myLogicOp); + returnVal = condition; } } return returnVal; |