From fb460fcb68dba32b93ad5eea593a62b474bf9eb8 Mon Sep 17 00:00:00 2001 From: Krzysztof Swiecicki Date: Fri, 23 Jun 2023 13:03:02 +0200 Subject: [PATCH] Add coverity scan fix to search order test --- test/loader/adapter_registry/search_order.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/loader/adapter_registry/search_order.cpp b/test/loader/adapter_registry/search_order.cpp index b946b2164f..9264bafe44 100644 --- a/test/loader/adapter_registry/search_order.cpp +++ b/test/loader/adapter_registry/search_order.cpp @@ -11,7 +11,7 @@ void assertRegistryPathSequence(std::vector testAdapterPaths, static size_t assertIndex = 0; auto pathIt = std::find_if(testAdapterPaths.cbegin(), - testAdapterPaths.cend(), predicate); + testAdapterPaths.cend(), std::move(predicate)); size_t index = std::distance(testAdapterPaths.cbegin(), pathIt); ASSERT_EQ(index, assertIndex++); }