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.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp
index a7dee25..f13faf2 100644
--- a/src/core/model/Document.hpp
+++ b/src/core/model/Document.hpp
@@ -372,6 +372,8 @@ public:
* information please refer to the header documentation above.
*/
class StructuredEntity : public StructureNode, public DocumentEntity {
+ friend Document;
+
protected:
bool doValidate(Logger &logger) const override;
@@ -497,7 +499,7 @@ public:
class Anchor : public StructureNode {
protected:
bool doValidate(Logger &logger) const override;
-
+
public:
/**
* Constructor for Anchor.
@@ -545,6 +547,7 @@ public:
*/
class AnnotationEntity : public Node, public DocumentEntity {
friend DocumentEntity;
+ friend Document;
private:
Owned<Anchor> start;