aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-08-02 20:48:24 +0200
committerRenaud G <renaud@rolisteam.org>2019-09-15 19:22:15 +0200
commit5d7af9271b6cea3b11e79c67da79b480767ba18a (patch)
treedb988b2f5334241d87fac3bebd09449c332be390
parentc6dcdab6c6f8590771e90b2dc8515343d7d33e84 (diff)
downloadOneRoll-5d7af9271b6cea3b11e79c67da79b480767ba18a.tar.gz
OneRoll-5d7af9271b6cea3b11e79c67da79b480767ba18a.zip
Improve readability
-rw-r--r--node/groupnode.cpp2
-rw-r--r--node/groupnode.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/node/groupnode.cpp b/node/groupnode.cpp
index 681db47..c779587 100644
--- a/node/groupnode.cpp
+++ b/node/groupnode.cpp
@@ -222,7 +222,7 @@ QList<DieGroup> GroupNode::getGroup(DieGroup values)
}
else
{
- DieGroup::reverse_iterator it= values.rbegin();
+ auto it= values.rbegin();
bool foundPerfect= false;
qint64 cumuledValue= 0;
DieGroup previousValue;
diff --git a/node/groupnode.h b/node/groupnode.h
index e09bf19..1872afa 100644
--- a/node/groupnode.h
+++ b/node/groupnode.h
@@ -25,6 +25,7 @@
#include "node/executionnode.h"
#include "result/scalarresult.h"
// typedef QList<qint64> DieGroup;
+#include <QList>
class DieGroup : public QList<qint64>
{