From eef188c6cc953fcff9cf4491b0ae8256608caa14 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 23 Oct 2018 20:01:40 +0200 Subject: first draft for diceresult --- cli/main.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ diceparser.cpp | 14 ++++++++++++-- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/cli/main.cpp b/cli/main.cpp index dee3d05..30b05a3 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -242,6 +242,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF QString comment = parser.getComment(); QString error = parser.humanReadableError(); QStringList strLst; + QStringList listOfDiceResult; if(parser.hasIntegerResultNotInFirst()) { @@ -262,7 +263,41 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF } scalarText = QString("%1").arg(strLst.join(',')); } + if(!list.isEmpty()) + { + qDebug() << "list is not empty" << list.size(); + for(auto map : list) + { + qDebug() << "loop map"<< map.size(); + for(auto key : map.keys()) + { + qDebug() << "key: "< 1) + { + stringVal=QString("%1 [%2]").arg(total).arg(dicelist.join(',')); + listOfDiceResult << stringVal; + } + else + { + listOfDiceResult << QString::number(total); + } + } + } + } + } + qDebug() << listOfDiceResult; if(parser.hasStringResult()) { bool ok; @@ -277,6 +312,11 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF stringResult.replace(QStringLiteral("$%1").arg(i),(*it)); --i; } + for(auto it = strLst.rbegin(); it != strLst.rend() ; ++it) + { + stringResult.replace(QStringLiteral("µ%1").arg(i),(*it)); + --i; + } resultStr = stringResult; } diff --git a/diceparser.cpp b/diceparser.cpp index 41a91e5..0d41f4d 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -494,19 +494,23 @@ QStringList DiceParser::getAllDiceResult(bool& hasAlias) } void DiceParser::getLastDiceResult(QList& diceValuesList,bool& homogeneous) { + int i = 0; for(auto start : m_startNodes) { ExportedDiceResult diceValues; ExecutionNode* next = getLeafNode(start); Result* result=next->getResult(); - + qDebug() << "tour:"<hasResultOfType(Result::DICE_LIST)) { + qDebug() << "has diceresult"<(result); if(nullptr!=diceResult) { + qDebug() << "cast diceresult"; if(homogeneous) { @@ -516,8 +520,9 @@ void DiceParser::getLastDiceResult(QList& diceValuesList,boo ListDiceResult listpair; for(Die* die : diceResult->getResultList()) { - if(!die->hasBeenDisplayed()) + // if(!die->hasBeenDisplayed()) { + qDebug() << "dice has NOT been displayed"; QList valuesResult; valuesResult.append(die->getValue()); die->displayed(); @@ -533,9 +538,14 @@ void DiceParser::getLastDiceResult(QList& diceValuesList,boo //QPair,bool> pair(valuesResult,die->isHighlighted()); listpair.append(hlDice); } + // else + { + qDebug() << "dice has been displayed"; + } } if(!listpair.isEmpty()) { + qDebug() << "list pair not empty "; if(!diceValues.contains(face)) { diceValues.insert(face,listpair); -- cgit v1.2.3-70-g09d2 From 0586f25925f4db4a181c7d7d0a3925bb8a6daecf Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 24 Oct 2018 21:37:58 +0200 Subject: DiceParser: better display. --- cli/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/main.cpp b/cli/main.cpp index 30b05a3..c40cff6 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -304,6 +304,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF QStringList allStringlist = parser.getAllStringResult(ok); QString stringResult = allStringlist.join(" ; "); stringResult.replace("%1",scalarText); + resultStr.replace("%2",diceList.trimmed()); stringResult.replace("%3",lastScalarText); int i = strLst.size(); @@ -312,6 +313,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF stringResult.replace(QStringLiteral("$%1").arg(i),(*it)); --i; } + i = strLst.size(); for(auto it = strLst.rbegin(); it != strLst.rend() ; ++it) { stringResult.replace(QStringLiteral("µ%1").arg(i),(*it)); -- cgit v1.2.3-70-g09d2 From 5c7dede4cd289b80f6e2af877ee1621d91e968d7 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 6 Nov 2018 13:54:14 +0100 Subject: Update README.md improve readme --- README.md | 91 +++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 54 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 510a37d..4f49bd6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,60 @@ # DiceParser -Rolisteam Dice Parser +Rolisteam Dice Parser run dice commands. It is available on several platforms. +The syntax is simple and powerful. + +[Full documentation here](https://github.com/Rolisteam/DiceParser/blob/master/HelpMe.md) + + +## [Invite to Your Discord Server](https://discordapp.com/oauth2/authorize?&client_id=279722369260453888&scope=bot&permissions=0) + +[![Discord Bots](https://discordbots.org/api/widget/279722369260453888.svg)](https://discordbots.org/bot/279722369260453888) + + +## Features + +* `99.9%` uptime +* Roll any kind of dice +* Customizable prefix +* Custom alias/macro to improve game experience +* Manage colorized dice +* Many operators + +## Examples: + +### 3D100 +Roll 3 dice with 100 faces + +### 10D10e[=10]s +Roll 10 dice with 10 faces, 10 explodes, and sort the result. + +### 100291D66666666s +roll 100291 dice with 66666666666 faces and sort result + +### 15D10c[>7] +roll 15 dice with 10 faces and it counts number of dice which are above 7 + +### 1D8+2D6+7 +roll 1 die with 8 faces and add the result to 2 dice with 6 faces and add 7. + +### D25 +roll 1 die with 25 faces + +### 88-1D20 +88 minus the value of 1 die of 20 faces + +### 8+8+8 +compute: 24 + + + +### 100/28*3 +compute: 100/28 = 3 +3*3 = 9 + + +More examples at : https://github.com/Rolisteam/DiceParser/blob/master/HelpMe.md ## Grammar The grammar is something like this: @@ -50,39 +103,3 @@ Parenthese =: (expression) Count =: c Validator ``` - -## Example: - - -### 3D100 -Roll 3 dice with 100 faces - -### 10D10e[=10]s -Roll 10 dice with 10 faces, 10 explodes, and sort the result. - -### 100291D66666666s -roll 100291 dice with 66666666666 faces and sort result - -### 15D10c[>7] -roll 15 dice with 10 faces and it counts number of dice which are above 7 - -### 1D8+2D6+7 -roll 1 die with 8 faces and add the result to 2 dice with 6 faces and add 7. - -### D25 -roll 1 die with 25 faces - -### 88-1D20 -88 minus the value of 1 die of 20 faces - -### 8+8+8 -compute: 24 - - - -### 100/28*3 -compute: 100/28 = 3 -3*3 = 9 - - -More examples at : https://github.com/Rolisteam/DiceParser/blob/master/HelpMe.md -- cgit v1.2.3-70-g09d2 From 00945681bdf2cde54e08715e7385dc567903a979 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 6 Nov 2018 13:55:44 +0100 Subject: add logo add logo --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f49bd6..bad8c40 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ - -[![Build Status](http://www.rolisteam.org/sites/default/files/pixture_reloaded_logo.png)](http://www.rolisteam.org) +[![Logo](https://raw.githubusercontent.com/Rolisteam/rolisteam/master/resources/logo/1000-rolisteam.png)](http://www.rolisteam.org) # DiceParser -- cgit v1.2.3-70-g09d2 From bd4a0c837bd5e3b4dbf9d3dcef892850d04ec6ac Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Wed, 7 Nov 2018 09:25:23 +0000 Subject: fix compilation --- diceparser.cpp | 2 +- result/diceresult.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/diceparser.cpp b/diceparser.cpp index 41a91e5..6108eb8 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include "node/startingnode.h" #include "node/scalaroperatornode.h" @@ -48,7 +49,6 @@ #include "node/variablenode.h" #include "node/bind.h" - #define DEFAULT_FACES_NUMBER 10 DiceParser::DiceParser() diff --git a/result/diceresult.h b/result/diceresult.h index 8ff041f..8ea807a 100644 --- a/result/diceresult.h +++ b/result/diceresult.h @@ -22,6 +22,7 @@ #ifndef DICERESULT_H #define DICERESULT_H #include +#include #include "die.h" #include "result.h" -- cgit v1.2.3-70-g09d2 From b210bda3d2362e9b5f1606c7a21f546dcd2e6a67 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 17 Oct 2018 17:50:56 +0200 Subject: Update HelpMe.md add one best practice --- HelpMe.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/HelpMe.md b/HelpMe.md index 2da834c..2bd1e02 100644 --- a/HelpMe.md +++ b/HelpMe.md @@ -600,6 +600,14 @@ As DiceParser provides more and more features, you may find several ways to do t The merge operator is useful when you want to use dice operator on all rolled dice. +```Bad``` +> 1d20K1+1d10K1 + +```Good``` +> 1d20+1d10 + +The k operator to keeps as many dice as you roll is pretty useless because it is the default behaviour. + ## Plateform specific documentation ### Roll dice on each platform -- cgit v1.2.3-70-g09d2 From 250431661bc4abb819bf790ff3348babfadf98b4 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 27 Oct 2018 00:46:35 +0200 Subject: copy data parameter when copy variable node --- node/variablenode.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/variablenode.cpp b/node/variablenode.cpp index b1c9e3b..fafc722 100644 --- a/node/variablenode.cpp +++ b/node/variablenode.cpp @@ -53,6 +53,10 @@ ExecutionNode *VariableNode::getCopy() const { VariableNode* node = new VariableNode(); node->setIndex(m_index); + if(nullptr != m_data) + { + node->setData(m_data); + } if(nullptr!=m_nextNode) { node->setNextNode(m_nextNode->getCopy()); -- cgit v1.2.3-70-g09d2 From ab902d65c6640e7b388cc5d89588e2fc6b32759a Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 27 Oct 2018 00:25:05 +0200 Subject: Clean up die class. --- die.cpp | 5 ----- die.h | 10 +++++----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/die.cpp b/die.cpp index 7cacf18..d398021 100644 --- a/die.cpp +++ b/die.cpp @@ -29,13 +29,8 @@ Die::Die() : m_hasValue(false),m_displayStatus(false),m_highlighted(true),m_base(1),m_color(""),m_op(Die::PLUS)//,m_mt(m_randomDevice) { -// uint seed = quintptr(this) + QDateTime::currentDateTime().toMSecsSinceEpoch(); - - // qsrand(seed); - auto seed = std::chrono::high_resolution_clock::now().time_since_epoch().count(); m_rng = std::mt19937(quintptr(this)+seed); - } Die::Die(const Die& die) { diff --git a/die.h b/die.h index b17ced4..79bed6d 100644 --- a/die.h +++ b/die.h @@ -135,12 +135,12 @@ public: void setOp(const Die::ArithmeticOperator &op); private: - qint64 m_value; + qint64 m_value = 0; QList m_rollResult; - bool m_selected; - bool m_hasValue; - bool m_displayStatus; - bool m_highlighted; + bool m_selected = false; + bool m_hasValue = false; + bool m_displayStatus = false; + bool m_highlighted = true; qint64 m_maxValue; qint64 m_base; QString m_color; -- cgit v1.2.3-70-g09d2 From c98b88063b0edd45c240902a767804f232af9a43 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 27 Oct 2018 00:25:55 +0200 Subject: HighLightDice: add member to help. --- highlightdice.cpp | 24 ++++++++++++++++++++++-- highlightdice.h | 14 ++++++++++---- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/highlightdice.cpp b/highlightdice.cpp index 47ed79e..1c4b2e7 100644 --- a/highlightdice.cpp +++ b/highlightdice.cpp @@ -19,8 +19,8 @@ ***************************************************************************/ #include "highlightdice.h" -HighLightDice::HighLightDice(QList result,bool isHighlighted, QString color) - : m_result(result),m_hasHighlight(isHighlighted),m_color(color) +HighLightDice::HighLightDice(QList result, bool isHighlighted, QString color, bool displayed, quint64 faces) + : m_result(result),m_hasHighlight(isHighlighted),m_color(color), m_displayed(displayed),m_faces(faces) { } @@ -60,3 +60,23 @@ void HighLightDice::setColor(const QString &color) { m_color = color; } + +bool HighLightDice::getDisplayed() const +{ + return m_displayed; +} + +void HighLightDice::setDisplayed(bool displayed) +{ + m_displayed = displayed; +} + +quint64 HighLightDice::getFaces() const +{ + return m_faces; +} + +void HighLightDice::setFaces(const quint64 &faces) +{ + m_faces = faces; +} diff --git a/highlightdice.h b/highlightdice.h index a74d747..72e696f 100644 --- a/highlightdice.h +++ b/highlightdice.h @@ -27,11 +27,9 @@ class HighLightDice { public: - HighLightDice(QList result,bool isHighlighted, QString color); + HighLightDice(QList result,bool isHighlighted, QString color, bool displayed,quint64 faces); virtual ~HighLightDice(); - - QList getResult() const; void setResult(const QList &result); @@ -41,10 +39,18 @@ public: QString getColor() const; void setColor(const QString &color); + bool getDisplayed() const; + void setDisplayed(bool displayed); + + quint64 getFaces() const; + void setFaces(const quint64 &faces); + private: QList m_result; - bool m_hasHighlight; + bool m_hasHighlight = true; QString m_color; + bool m_displayed = false; + quint64 m_faces; }; #endif // HighLightDice_H -- cgit v1.2.3-70-g09d2 From 0994c2713eb17a7568369bbb09ca73d4e4045028 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 27 Oct 2018 00:35:00 +0200 Subject: Commit before rebase. --- diceparser.cpp | 46 +++++++++++++++++++++++++++++++++------------- diceparser.h | 3 ++- 2 files changed, 35 insertions(+), 14 deletions(-) diff --git a/diceparser.cpp b/diceparser.cpp index 0d41f4d..6182a89 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -492,6 +492,37 @@ QStringList DiceParser::getAllDiceResult(bool& hasAlias) return stringListResult; } + +void DiceParser::getDiceResultFromAllInstruction(QList& resultList) +{ + int i = 0; + for(auto start : m_startNodes) + { + ExecutionNode* next = getLeafNode(start); + Result* result=next->getResult(); + ExportedDiceResult nodeResult; + while(nullptr!=result) + { + if(result->hasResultOfType(Result::DICE_LIST)) + { + DiceResult* diceResult = dynamic_cast(result); + QList list; + quint64 faces = 0; + + for(Die* die : diceResult->getResultList()) + { + faces = die->getFaces(); + HighLightDice hlDice(die->getListValue(),die->isHighlighted(),die->getColor(), die->hasBeenDisplayed(),die->getFaces()); + list.append(hlDice); + } + nodeResult.insert(static_cast(faces),list); + } + result = result->getPrevious(); + } + resultList.append(nodeResult); + } +} + void DiceParser::getLastDiceResult(QList& diceValuesList,bool& homogeneous) { int i = 0; @@ -500,17 +531,13 @@ void DiceParser::getLastDiceResult(QList& diceValuesList,boo ExportedDiceResult diceValues; ExecutionNode* next = getLeafNode(start); Result* result=next->getResult(); - qDebug() << "tour:"<hasResultOfType(Result::DICE_LIST)) { - qDebug() << "has diceresult"<(result); if(nullptr!=diceResult) { - qDebug() << "cast diceresult"; if(homogeneous) { @@ -520,9 +547,8 @@ void DiceParser::getLastDiceResult(QList& diceValuesList,boo ListDiceResult listpair; for(Die* die : diceResult->getResultList()) { - // if(!die->hasBeenDisplayed()) + if(!die->hasBeenDisplayed()) { - qDebug() << "dice has NOT been displayed"; QList valuesResult; valuesResult.append(die->getValue()); die->displayed(); @@ -534,18 +560,12 @@ void DiceParser::getLastDiceResult(QList& diceValuesList,boo valuesResult.append(i); } } - HighLightDice hlDice(valuesResult,die->isHighlighted(),die->getColor()); - //QPair,bool> pair(valuesResult,die->isHighlighted()); + HighLightDice hlDice(valuesResult,die->isHighlighted(),die->getColor(), die->hasBeenDisplayed(),0); listpair.append(hlDice); } - // else - { - qDebug() << "dice has been displayed"; - } } if(!listpair.isEmpty()) { - qDebug() << "list pair not empty "; if(!diceValues.contains(face)) { diceValues.insert(face,listpair); diff --git a/diceparser.h b/diceparser.h index 2ede553..3d5ba8f 100644 --- a/diceparser.h +++ b/diceparser.h @@ -129,7 +129,7 @@ public: * @brief getLastDiceResult * @return */ - void getLastDiceResult(QList& diceValues,bool& homogeneous); + void getLastDiceResult(QList& diceValues, bool& homogeneous); /** * @brief hasIntegerResultNotInFirst * @return @@ -219,6 +219,7 @@ public: bool readOptionFromNull(QString &str, ExecutionNode *&node); bool readInstructionList(QString &str); + void getDiceResultFromAllInstruction(QList &resultList); protected: bool readParameterNode(QString &str, ExecutionNode *&node); private: -- cgit v1.2.3-70-g09d2 From 4a6b19b27866326fa069a422ed2c862ab9e9d4d2 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 27 Oct 2018 00:35:15 +0200 Subject: Get full result. --- cli/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/main.cpp b/cli/main.cpp index c40cff6..7cf2b7b 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -232,8 +232,10 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF { parser.start(); QList list; + QList listFull; bool homogeneous = true; parser.getLastDiceResult(list,homogeneous); + parser.getDiceResultFromAllInstruction(listFull); bool allSameFaceCount, allSameColor; auto array = DisplayToolBox::diceToJson(list,allSameFaceCount,allSameColor); QString resultStr; @@ -313,7 +315,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF stringResult.replace(QStringLiteral("$%1").arg(i),(*it)); --i; } - i = strLst.size(); + i = listFull.size(); for(auto it = strLst.rbegin(); it != strLst.rend() ; ++it) { stringResult.replace(QStringLiteral("µ%1").arg(i),(*it)); -- cgit v1.2.3-70-g09d2 From 1d8bd391b1df4fd2f2f274828db14c9ce695eb8b Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 9 Nov 2018 23:47:26 +0100 Subject: fix some warnings --- diceparser.cpp | 2 -- result/diceresult.cpp | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/diceparser.cpp b/diceparser.cpp index 6182a89..daa8d9d 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -495,7 +495,6 @@ QStringList DiceParser::getAllDiceResult(bool& hasAlias) void DiceParser::getDiceResultFromAllInstruction(QList& resultList) { - int i = 0; for(auto start : m_startNodes) { ExecutionNode* next = getLeafNode(start); @@ -525,7 +524,6 @@ void DiceParser::getDiceResultFromAllInstruction(QList& resu void DiceParser::getLastDiceResult(QList& diceValuesList,bool& homogeneous) { - int i = 0; for(auto start : m_startNodes) { ExportedDiceResult diceValues; diff --git a/result/diceresult.cpp b/result/diceresult.cpp index 7894b60..c1089dd 100644 --- a/result/diceresult.cpp +++ b/result/diceresult.cpp @@ -114,6 +114,9 @@ qreal DiceResult::getScalarResult() case Die::MINUS: scalar-=tmp->getValue(); break; + case Die::POW: + scalar=static_cast(pow(static_cast(scalar),static_cast(tmp->getValue()))); + break; case Die::DIVIDE: case Die::INTEGER_DIVIDE: if(tmp->getValue()!=0) @@ -135,8 +138,6 @@ qreal DiceResult::getScalarResult() } return scalar; } - - return 0; } Die::ArithmeticOperator DiceResult::getOperator() const -- cgit v1.2.3-70-g09d2 From 48de810db56b728726ec8b499b9a12c687b53795 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 11 Nov 2018 19:46:42 +0100 Subject: prevent warning --- die.cpp | 3 +++ node/keepdiceexecnode.cpp | 6 +++--- operationcondition.cpp | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/die.cpp b/die.cpp index d398021..784287d 100644 --- a/die.cpp +++ b/die.cpp @@ -103,6 +103,9 @@ qint64 Die::getValue() const //error(); } break; + case POW: + value=static_cast(std::pow(value,tmp)); + break; } } else diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp index 347931d..dbd1591 100644 --- a/node/keepdiceexecnode.cpp +++ b/node/keepdiceexecnode.cpp @@ -51,7 +51,7 @@ void KeepDiceExecNode::run(ExecutionNode* previous) m_numberOfDice = diceList.size() + m_numberOfDice; } - QList diceList3= diceList.mid(0,m_numberOfDice); + QList diceList3= diceList.mid(0,static_cast(m_numberOfDice)); QList diceList2; for(Die* die : diceList3) @@ -64,12 +64,12 @@ void KeepDiceExecNode::run(ExecutionNode* previous) - if(m_numberOfDice > static_cast(diceList.size())) + if(m_numberOfDice > static_cast(diceList.size())) { m_errors.insert(TOO_MANY_DICE,QObject::tr(" You ask to keep %1 dice but the result only has %2").arg(m_numberOfDice).arg(diceList.size())); } - for(Die* tmp : diceList.mid(m_numberOfDice,-1)) + for(Die* tmp : diceList.mid(static_cast(m_numberOfDice),-1)) { tmp->setHighlighted(false); } diff --git a/operationcondition.cpp b/operationcondition.cpp index 2a83fec..6b4e819 100644 --- a/operationcondition.cpp +++ b/operationcondition.cpp @@ -108,7 +108,7 @@ QString OperationCondition::toString() } return QStringLiteral("[%1%2%3]").arg(str).arg(valueToScalar()).arg(m_boolean->toString()); } -bool OperationCondition::isValidRangeSize(std::pair range) const +bool OperationCondition::isValidRangeSize(std::pair) const { auto value = valueToScalar(); bool valid = true; -- cgit v1.2.3-70-g09d2