aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/keepdiceexecnode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-02-24 17:06:10 +0100
committerRenaud G <renaud@rolisteam.org>2018-02-24 17:06:10 +0100
commitff78f313abd4839b77f17255b79dd4499bce0512 (patch)
treebca17428464e6184a34f382bf28b3c3204b16519 /node/keepdiceexecnode.cpp
parent4eeb6ff50f3153c3e139507d99efdf2bc1b9314c (diff)
downloadOneRoll-ff78f313abd4839b77f17255b79dd4499bce0512.tar.gz
OneRoll-ff78f313abd4839b77f17255b79dd4499bce0512.zip
-remove warnings
Diffstat (limited to 'node/keepdiceexecnode.cpp')
-rw-r--r--node/keepdiceexecnode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp
index a93cc11..547e343 100644
--- a/node/keepdiceexecnode.cpp
+++ b/node/keepdiceexecnode.cpp
@@ -49,7 +49,7 @@ void KeepDiceExecNode::run(ExecutionNode* previous)
QList<Die*> diceList3= diceList.mid(0,m_numberOfDice);
QList<Die*> diceList2;
- foreach(Die* die,diceList3)
+ for(Die* die : diceList3)
{
Die* tmpdie = new Die();
*tmpdie=*die;
@@ -59,7 +59,7 @@ void KeepDiceExecNode::run(ExecutionNode* previous)
- if(m_numberOfDice > diceList.size())
+ if(m_numberOfDice > static_cast<quint64>(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()));
}