[apps] Ensure const methods when needed in node class

Change-Id: Ib1ca31d4eeaaf1a05cc2e25e408b382111fa3648
This commit is contained in:
Émilie Feral
2016-11-14 12:20:45 +01:00
parent 139158557c
commit 68eae7f010
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#include "node.h"
int Node::numberOfChildren() {
int Node::numberOfChildren() const {
return m_numberOfChildren;
}
@@ -8,6 +8,6 @@ const char * Node::label() const {
return m_label;
}
bool Node::isNull() {
bool Node::isNull() const {
return (m_label == nullptr);
}