diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-03-29 16:07:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 16:07:07 +0200 |
commit | 89d248d004cbad6d83f51974238300e2dc2c0de1 (patch) | |
tree | aff26c0e5b184f863093928394de7e11bd3924c9 /document/src/tests | |
parent | dc45403e426237d940544b4929f5e9f31c259d0e (diff) | |
parent | c533430fd00b801968d58071d022de9f90a02515 (diff) |
Merge pull request #21879 from vespa-engine/arnej/use-std-function
use std::function
Diffstat (limited to 'document/src/tests')
-rw-r--r-- | document/src/tests/repo/documenttyperepo_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/document/src/tests/repo/documenttyperepo_test.cpp b/document/src/tests/repo/documenttyperepo_test.cpp index 8180accae00..132485b7975 100644 --- a/document/src/tests/repo/documenttyperepo_test.cpp +++ b/document/src/tests/repo/documenttyperepo_test.cpp @@ -376,8 +376,8 @@ TEST("requireThatDocumentTypesCanBeIterated") { DocumentTypeRepo repo(builder.config()); set<int> ids; - repo.forEachDocumentType(*DocumentTypeRepo::makeLambda( - [&ids](const DocumentType &type) { ids.insert(type.getId()); })); + repo.forEachDocumentType( + [&ids](const DocumentType &type) { ids.insert(type.getId()); }); EXPECT_EQUAL(3u, ids.size()); ASSERT_TRUE(ids.count(DataType::T_DOCUMENT)); |