summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/model/Node.cpp4
-rw-r--r--src/core/model/Node.hpp4
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: