Skip to content

Commit

Permalink
Add coverity scan fix to search order test
Browse files Browse the repository at this point in the history
  • Loading branch information
kswiecicki committed Jun 23, 2023
1 parent 7e16bb3 commit fb460fc
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 fb460fc

Please sign in to comment.