diff options
| author | 2015-04-08 21:34:02 +0200 | |
|---|---|---|
| committer | 2015-04-08 21:34:02 +0200 | |
| commit | 5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b (patch) | |
| tree | 0d8d654046e18ad90a7a06e00e0e56c375a230fd /node/scalaroperatornode.h | |
| parent | 9192ba51a362715061cce1104b5543f7e93bf70f (diff) | |
| download | OneRoll-5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b.tar.gz OneRoll-5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b.zip | |
-remove memory leaks
-delete created objects
Diffstat (limited to 'node/scalaroperatornode.h')
| -rw-r--r-- | node/scalaroperatornode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node/scalaroperatornode.h b/node/scalaroperatornode.h index a67e296..7193118 100644 --- a/node/scalaroperatornode.h +++ b/node/scalaroperatornode.h @@ -12,6 +12,7 @@ class ScalarOperatorNode : public ExecutionNode public: enum ScalarOperator {PLUS,MINUS,DIVIDE,MULTIPLICATION}; ScalarOperatorNode(); + virtual ~ScalarOperatorNode(); virtual void run(ExecutionNode*); bool setOperatorChar(QChar c); void setInternalNode(ExecutionNode* node); @@ -28,7 +29,7 @@ private: qint64 multiple(qint64,qint64); private: - ScalarOperator m_myOperator; + ScalarOperator m_operator; ExecutionNode* m_internalNode; QMap<QChar,ScalarOperator> m_scalarOperationList; ScalarResult* m_scalarResult; |