summaryrefslogtreecommitdiffstats
path: root/documentapi/src/tests/messages/messages60test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2023-03-13 16:56:36 +0100
committerGitHub <noreply@github.com>2023-03-13 16:56:36 +0100
commite516c905090b34d10e6f13b72a8b836ab33f6331 (patch)
tree21f5a109fdc03a07ef1dd0cbe99fe8fb9b845ec4 /documentapi/src/tests/messages/messages60test.cpp
parent087f462b06d3f6bf4073ac34fa383310e5a15d21 (diff)
parent0c657642eff7d85c000464e9edba16ded4845e7d (diff)
Merge pull request #26423 from vespa-engine/geirst/less-document-without-type-repo
Reduce creation of Document instances without DocumentTypeRepo.
Diffstat (limited to 'documentapi/src/tests/messages/messages60test.cpp')
-rw-r--r--documentapi/src/tests/messages/messages60test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentapi/src/tests/messages/messages60test.cpp b/documentapi/src/tests/messages/messages60test.cpp
index ab300794307..258e8821e0c 100644
--- a/documentapi/src/tests/messages/messages60test.cpp
+++ b/documentapi/src/tests/messages/messages60test.cpp
@@ -79,9 +79,9 @@ namespace {
document::Document::SP
createDoc(const DocumentTypeRepo &repo, const string &type_name, const string &id)
{
- return document::Document::SP(new document::Document(
+ return std::make_shared<document::Document>(repo,
*repo.getDocumentType(type_name),
- document::DocumentId(id)));
+ document::DocumentId(id));
}
} // namespace