mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
clang-tidy: Fix performance-for-range-copy
in headers
See https://clang.llvm.org/extra/clang-tidy/checks/performance/for-range-copy.html
This commit is contained in:
parent
5055d07edf
commit
48033d43dc
@ -178,7 +178,7 @@ void SerializeHDKeypath(Stream& s, KeyOriginInfo hd_keypath)
|
|||||||
template<typename Stream>
|
template<typename Stream>
|
||||||
void SerializeHDKeypaths(Stream& s, const std::map<CPubKey, KeyOriginInfo>& hd_keypaths, CompactSizeWriter type)
|
void SerializeHDKeypaths(Stream& s, const std::map<CPubKey, KeyOriginInfo>& hd_keypaths, CompactSizeWriter type)
|
||||||
{
|
{
|
||||||
for (auto keypath_pair : hd_keypaths) {
|
for (const auto& keypath_pair : hd_keypaths) {
|
||||||
if (!keypath_pair.first.IsValid()) {
|
if (!keypath_pair.first.IsValid()) {
|
||||||
throw std::ios_base::failure("Invalid CPubKey being serialized");
|
throw std::ios_base::failure("Invalid CPubKey being serialized");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user