mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 03:33:32 +01:00
Fix clang-tidy readability-const-return-type violations
This commit is contained in:
@@ -47,7 +47,7 @@ size_t CallOneOf(FuzzedDataProvider& fuzzed_data_provider, Callables... callable
|
||||
template <typename Collection>
|
||||
auto& PickValue(FuzzedDataProvider& fuzzed_data_provider, Collection& col)
|
||||
{
|
||||
const auto sz = col.size();
|
||||
auto sz{col.size()};
|
||||
assert(sz >= 1);
|
||||
auto it = col.begin();
|
||||
std::advance(it, fuzzed_data_provider.ConsumeIntegralInRange<decltype(sz)>(0, sz - 1));
|
||||
|
||||
Reference in New Issue
Block a user