aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-01-25 11:00:59 +0100
committerRenaud G <renaud@rolisteam.org>2014-01-25 11:00:59 +0100
commit26d5968dd89ad138b1d51f88cd02e2aa633f410d (patch)
treeda4d7928e6716791fd54797d38c9924a738f2cce
parentc94b46d51c6f5e7099915b4b39b89e53dc94bdc0 (diff)
downloadOneRoll-26d5968dd89ad138b1d51f88cd02e2aa633f410d.tar.gz
OneRoll-26d5968dd89ad138b1d51f88cd02e2aa633f410d.zip
correct compilation error
-rw-r--r--diceparser.cpp2
-rw-r--r--diceparser.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 1d980a6..5ddf172 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -494,7 +494,7 @@ bool DiceParser::readOption(QString& str,ExecutionNode* previous, bool hasDice)
return isFine;
}
-bool DiceParser::readOperand(QString&,ExecutionNode* & node)
+bool DiceParser::readOperand(QString& str,ExecutionNode* & node)
{
int myNumber=1;
if(m_parsingToolbox->readNumber(str,myNumber))
diff --git a/diceparser.h b/diceparser.h
index 6e99bcd..bcc4d81 100644
--- a/diceparser.h
+++ b/diceparser.h
@@ -79,7 +79,7 @@ private:
* @param str
* @return
*/
- bool readDice(QString& str,Dice&);
+ bool readDice(QString& str,ExecutionNode* & node);
/**
* @brief readDiceOperator
* @return
@@ -109,6 +109,8 @@ private:
DiceRollerNode* addRollDiceNode(qint64 faces,ExecutionNode*);
+ bool readOperand(QString&,ExecutionNode* & node);
+
private:
QMap<QString,DiceOperator>* m_mapDiceOp;
QMap<QString,OptionOperator>* m_OptionOp;