From ff78f313abd4839b77f17255b79dd4499bce0512 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 24 Feb 2018 17:06:10 +0100 Subject: -remove warnings --- node/keepdiceexecnode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/keepdiceexecnode.cpp') 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 diceList3= diceList.mid(0,m_numberOfDice); QList 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(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())); } -- cgit v1.2.3-70-g09d2