summaryrefslogtreecommitdiff
path: root/src/core/model/Document.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/model/Document.hpp')
-rw-r--r--src/core/model/Document.hpp9
1 files changed, 1 insertions, 8 deletions
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<StructuredEntity> root)
- {
- invalidate();
- this->root = acquire(root);
- if (root->getParent() != this) {
- root->setParent(this);
- }
- };
+ void setRoot(Handle<StructuredEntity> root);
/**
* Returns the root StructuredEntity of this Document.