diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-18 16:52:07 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-18 16:52:07 +0100 |
commit | 373c3489ed4b6927a9596882e9e4ff078624e943 (patch) | |
tree | 13e8367db9a8f144d4746597f6bf8d9edc476b9a /src/core | |
parent | 8ab0709045667f8e1a67a9981c619980c9aebd1a (diff) |
made invalidate and markInvalid const.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/model/Node.cpp | 4 | ||||
-rw-r--r-- | src/core/model/Node.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/model/Node.cpp b/src/core/model/Node.cpp index bd023e1..539924d 100644 --- a/src/core/model/Node.cpp +++ b/src/core/model/Node.cpp @@ -381,7 +381,7 @@ bool Node::validateName(Logger &logger) const return true; } -void Node::invalidate() +void Node::invalidate() const { // Only perform the invalidation if necessary if (validationState != ValidationState::UNKNOWN) { @@ -392,7 +392,7 @@ void Node::invalidate() } } -void Node::markInvalid() +void Node::markInvalid() const { // Do not override the validationState if we're currently in the validation // procedure, try to mark the parent node as invalid diff --git a/src/core/model/Node.hpp b/src/core/model/Node.hpp index 0168a3e..d951310 100644 --- a/src/core/model/Node.hpp +++ b/src/core/model/Node.hpp @@ -321,12 +321,12 @@ protected: * changed such that a new validation run has to be made. Also informs the * parent node about the invalidation. */ - void invalidate(); + void invalidate() const; /** * This method should be called if a Node finds itself in an invalid state. */ - void markInvalid(); + void markInvalid() const; /** * The convention for this function is as follows: |