aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2016-01-08 20:54:21 +0100
committerRenaud G <renaud@rolisteam.org>2016-01-08 20:54:21 +0100
commitdb15e41502743d1124062eddb8d2bb3617e2593c (patch)
tree259d73b1be7b10efbfd125c118fc7d956a9b1aac /node
parent6a1a9f1c7f3c50d04d89cc54e93d08ed6f2c4cc2 (diff)
downloadOneRoll-db15e41502743d1124062eddb8d2bb3617e2593c.tar.gz
OneRoll-db15e41502743d1124062eddb8d2bb3617e2593c.zip
fix cppcheck errors
Diffstat (limited to 'node')
-rw-r--r--node/scalaroperatornode.cpp4
-rw-r--r--node/scalaroperatornode.h6
2 files changed, 3 insertions, 7 deletions
diff --git a/node/scalaroperatornode.cpp b/node/scalaroperatornode.cpp
index f69cb01..67fda8d 100644
--- a/node/scalaroperatornode.cpp
+++ b/node/scalaroperatornode.cpp
@@ -109,7 +109,6 @@ bool ScalarOperatorNode::setOperatorChar(QChar c)
return false;
}
-
void ScalarOperatorNode::setInternalNode(ExecutionNode* node)
{
m_internalNode = node;
@@ -118,12 +117,10 @@ qint64 ScalarOperatorNode::add(qint64 a,qint64 b)
{
return a+b;
}
-
qint64 ScalarOperatorNode::substract(qint64 a,qint64 b)
{
return a-b;
}
-
qreal ScalarOperatorNode::divide(qint64 a,qint64 b)
{
if(b==0)
@@ -133,7 +130,6 @@ qreal ScalarOperatorNode::divide(qint64 a,qint64 b)
}
return (qreal)a/b;
}
-
qint64 ScalarOperatorNode::multiple(qint64 a,qint64 b)
{
return a*b;
diff --git a/node/scalaroperatornode.h b/node/scalaroperatornode.h
index ea0f7e1..ca6f3ac 100644
--- a/node/scalaroperatornode.h
+++ b/node/scalaroperatornode.h
@@ -53,10 +53,10 @@ public:
virtual QMap<ExecutionNode::ERROR_CODE,QString> getExecutionErrorMap();
private:
- qint64 add(qint64,qint64);
- qint64 substract(qint64,qint64);
+ static qint64 add(qint64,qint64);
+ static qint64 substract(qint64,qint64);
qreal divide(qint64,qint64);
- qint64 multiple(qint64,qint64);
+ static qint64 multiple(qint64,qint64);
private:
ScalarOperator m_operator;