summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/persistence/fieldvisitor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/vespa/storage/persistence/fieldvisitor.h b/storage/src/vespa/storage/persistence/fieldvisitor.h
index f2b07e193d6..99558fe6e9c 100644
--- a/storage/src/vespa/storage/persistence/fieldvisitor.h
+++ b/storage/src/vespa/storage/persistence/fieldvisitor.h
@@ -16,7 +16,7 @@ namespace storage {
class FieldVisitor : public document::select::Visitor {
private:
document::DocumentType _docType;
- document::Field::Set _fields;
+ document::Field::Set::Builder _fields;
public:
explicit FieldVisitor(const document::DocumentType & docType)
@@ -26,7 +26,7 @@ public:
~FieldVisitor() override;
document::FieldCollection getFieldSet() {
- return document::FieldCollection(_docType, std::move(_fields));
+ return document::FieldCollection(_docType, _fields.build());
}
void visitFieldValueNode(const document::select::FieldValueNode &) override;