diff options
Diffstat (limited to 'searchlib/src/apps')
-rw-r--r-- | searchlib/src/apps/tests/memoryindexstress_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searchlib/src/apps/tests/memoryindexstress_test.cpp b/searchlib/src/apps/tests/memoryindexstress_test.cpp index fb743ad93ac..fdb132d9a36 100644 --- a/searchlib/src/apps/tests/memoryindexstress_test.cpp +++ b/searchlib/src/apps/tests/memoryindexstress_test.cpp @@ -153,8 +153,7 @@ makeDoc(const DocumentTypeRepo &repo, uint32_t i, idstr << "id:test:test:: " << i; DocumentId id(idstr.str()); const DocumentType *docType = repo.getDocumentType(doc_type_name); - auto doc(std::make_unique<Document>(*docType, id)); - doc->setRepo(repo); + auto doc(std::make_unique<Document>(repo, *docType, id)); if (!titleString.empty()) { setFieldValue(*doc, title, titleString); } |