aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2016-04-21 06:45:15 +0200
committerRenaud G <renaud@rolisteam.org>2016-04-21 06:45:15 +0200
commit1e2c2131bfa90256817bc0299892af06bcfca608 (patch)
tree9b6ceefae8b32b6e4dd633a8bd5d27cedb05e032 /node
parentee3cc6726675134a8522d00cfd9176b3a169b0cd (diff)
downloadOneRoll-1e2c2131bfa90256817bc0299892af06bcfca608.tar.gz
OneRoll-1e2c2131bfa90256817bc0299892af06bcfca608.zip
Fix error and warning from CppCheck
Diffstat (limited to 'node')
-rw-r--r--node/countexecutenode.h2
-rw-r--r--node/dicerollernode.cpp2
-rw-r--r--node/dicerollernode.h2
-rw-r--r--node/rerolldicenode.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/node/countexecutenode.h b/node/countexecutenode.h
index 167ee82..15b2509 100644
--- a/node/countexecutenode.h
+++ b/node/countexecutenode.h
@@ -38,8 +38,8 @@ public:
virtual qint64 getPriority() const;
private:
- Validator* m_validator;
ScalarResult* m_scalarResult;
+ Validator* m_validator;
};
#endif // COUNTEXECUTENODE_H
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp
index d8fe49c..e6f2950 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -46,7 +46,7 @@ void DiceRollerNode::run(ExecutionNode* previous)
}
}
-quint64 DiceRollerNode::getFaces()
+quint64 DiceRollerNode::getFaces() const
{
return m_faces;
}
diff --git a/node/dicerollernode.h b/node/dicerollernode.h
index 808676f..2de1cfe 100644
--- a/node/dicerollernode.h
+++ b/node/dicerollernode.h
@@ -27,7 +27,7 @@ public:
* @brief getFaces accessor
* @return the face count
*/
- quint64 getFaces();
+ quint64 getFaces() const;
/**
* @brief toString
diff --git a/node/rerolldicenode.h b/node/rerolldicenode.h
index f456bb3..2a98b4a 100644
--- a/node/rerolldicenode.h
+++ b/node/rerolldicenode.h
@@ -53,9 +53,9 @@ public:
virtual qint64 getPriority() const;
private:
- Validator* m_validator;
DiceResult* m_myDiceResult;
bool m_adding;
+ Validator* m_validator;
};
#endif // REROLLDICENODE_H