summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/model/Document.cpp2
-rw-r--r--src/core/model/Document.hpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp
index ec58141..7552bd3 100644
--- a/src/core/model/Document.cpp
+++ b/src/core/model/Document.cpp
@@ -550,7 +550,7 @@ void Document::addAnnotation(Handle<AnnotationEntity> a)
}
}
-void Document::addAnnotations(std::vector<Handle<AnnotationEntity>> as)
+void Document::addAnnotations(const std::vector<Handle<AnnotationEntity>> &as)
{
for (Handle<AnnotationEntity> a : as) {
addAnnotation(a);
diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp
index 5d5879e..a7dee25 100644
--- a/src/core/model/Document.hpp
+++ b/src/core/model/Document.hpp
@@ -279,6 +279,7 @@ public:
*
* This method also changes the parent of the newly added StructureNode if
* it is not set to this DocumentEntity already.
+ * TODO: This could get move semantics.
*
* @param s is the StructureNode that shall be added.
* @param fieldName is the name of a field as specified in the
@@ -690,7 +691,7 @@ public:
*
* @param as is a vector of AnnotationEntities.
*/
- void addAnnotations(std::vector<Handle<AnnotationEntity>> as);
+ void addAnnotations(const std::vector<Handle<AnnotationEntity>>& as);
/**
* Returns a const reference to the NodeVector of Domains that are used