mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 00:34:01 +02:00
clang-tidy: Add performance-inefficient-vector-operation check
https://clang.llvm.org/extra/clang-tidy/checks/performance/inefficient-vector-operation.html
This commit is contained in:
@@ -146,6 +146,7 @@ static void AvailableCoins(benchmark::Bench& bench, const std::vector<OutputType
|
||||
|
||||
// Generate destinations
|
||||
std::vector<CScript> dest_wallet;
|
||||
dest_wallet.reserve(output_type.size());
|
||||
for (auto type : output_type) {
|
||||
dest_wallet.emplace_back(GetScriptForDestination(getNewDestination(wallet, type)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user