From 0b39dfaf91658295e188c010127bafa468b76b4b Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 6 Feb 2015 16:44:47 +0100 Subject: moved setRoot to Document.cpp --- src/core/model/Document.hpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/core/model/Document.hpp') diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp index 35c6664..5235006 100644 --- a/src/core/model/Document.hpp +++ b/src/core/model/Document.hpp @@ -732,14 +732,7 @@ public: * parent of the given StructuredEntity if it is not set to this Document * already. */ - void setRoot(Handle root) - { - invalidate(); - this->root = acquire(root); - if (root->getParent() != this) { - root->setParent(this); - } - }; + void setRoot(Handle root); /** * Returns the root StructuredEntity of this Document. -- cgit v1.2.3