Skip to content

Commit

Permalink
Merge pull request #647 from kswiecicki/adapter-path-order-move-fix
Browse files Browse the repository at this point in the history
Add coverity scan fix to search order test
  • Loading branch information
wlemkows authored Jun 23, 2023
2 parents 7e16bb3 + fb460fc commit 91f0e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/loader/adapter_registry/search_order.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void assertRegistryPathSequence(std::vector<fs::path> 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++);
}
Expand Down

0 comments on commit 91f0e37

Please sign in to comment.