summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-23 05:55:42 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-23 05:56:45 +0000
commit5d2e89d0e9fea8e19720dedfca283f4f788958d7 (patch)
treebf753e309b508183c9fd4633ed4ca3930f38b1b2 /document
parent753c6869ac764e8b1463ba214980c82401479a88 (diff)
Just use the stack
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/fieldvalue/structfieldvalue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/document/src/vespa/document/fieldvalue/structfieldvalue.cpp b/document/src/vespa/document/fieldvalue/structfieldvalue.cpp
index 703650f7325..793f6918bd1 100644
--- a/document/src/vespa/document/fieldvalue/structfieldvalue.cpp
+++ b/document/src/vespa/document/fieldvalue/structfieldvalue.cpp
@@ -182,8 +182,8 @@ StructFieldValue::getFieldValue(const Field& field, FieldValue& value) const
if (buf.size() > 0) {
nbostream_longlivedbuf stream(buf.c_str(), buf.size());
if ((_repo == nullptr) && (_doc_type != nullptr)) {
- std::unique_ptr<const DocumentTypeRepo> tmpRepo(new DocumentTypeRepo(*_doc_type));
- createFV(value, *tmpRepo, stream, *_doc_type, _version);
+ DocumentTypeRepo tmpRepo(*_doc_type);
+ createFV(value, tmpRepo, stream, *_doc_type, _version);
} else {
createFV(value, *_repo, stream, *_doc_type, _version);
}