diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-20 01:24:11 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-20 01:24:11 +0100 |
commit | 20d3e71f26ca884271ed5d372a8459394554c147 (patch) | |
tree | 82f4b40e989205dbbbd03b70446ca8b02bf1908f /src/core/model/Node.cpp | |
parent | 7c64a0770a4800d80c5a53eea2243c46301f7749 (diff) |
finished setter revival in Document classes, hopefully.
Diffstat (limited to 'src/core/model/Node.cpp')
-rw-r--r-- | src/core/model/Node.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/model/Node.cpp b/src/core/model/Node.cpp index 5867fa3..71d59ce 100644 --- a/src/core/model/Node.cpp +++ b/src/core/model/Node.cpp @@ -430,12 +430,20 @@ bool Node::validate(Logger &logger) const case ValidationState::VALIDATING: // We've run into recursion -- a circular structure cannot be // properly validated, so return false - logger.error("This validation run lead to a cycle. As a fallback it is set to invalid!"); + logger.error( + "This validation run lead to a cycle. As a fallback it is set " + "to invalid!"); return false; } return false; } +void Node::setParent(Handle<Node> p) +{ + invalidate(); + parent = acquire(p); +} + /* RTTI type registrations */ namespace RttiTypes { const Rtti Node = |