summaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps/tests/persistenceconformance_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-01-25 19:17:01 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-01-25 19:18:24 +0000
commit4912032fc031820b9ac0ed290f38033714d3cd67 (patch)
treed1690b61652953a68781c1658d8bdc8a64bfb3c4 /searchcore/src/apps/tests/persistenceconformance_test.cpp
parent8f2798309ee0bff2a2747b982bb509dab45a4a4f (diff)
Use lambda over closure.
Diffstat (limited to 'searchcore/src/apps/tests/persistenceconformance_test.cpp')
-rw-r--r--searchcore/src/apps/tests/persistenceconformance_test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/searchcore/src/apps/tests/persistenceconformance_test.cpp b/searchcore/src/apps/tests/persistenceconformance_test.cpp
index 6b4061081ea..4715ff80d03 100644
--- a/searchcore/src/apps/tests/persistenceconformance_test.cpp
+++ b/searchcore/src/apps/tests/persistenceconformance_test.cpp
@@ -109,12 +109,13 @@ public:
DocumenttypesConfigSP getTypeCfg() const { return _typeCfg; }
DocTypeVector getDocTypes() const {
DocTypeVector types;
- _repo->forEachDocumentType(*makeClosure(storeDocType, &types));
+ _repo->forEachDocumentType(*DocumentTypeRepo::makeLambda([&types](const DocumentType &type) {
+ types.push_back(DocTypeName(type.getName()));
+ }));
return types;
}
DocumentDBConfig::SP create(const DocTypeName &docTypeName) const {
- const DocumentType *docType =
- _repo->getDocumentType(docTypeName.getName());
+ const DocumentType *docType = _repo->getDocumentType(docTypeName.getName());
if (docType == nullptr) {
return DocumentDBConfig::SP();
}