diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-16 10:53:55 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-16 10:53:55 +0000 |
commit | 48033d43dc30fcee2c9a38c828d2f58d3bc11827 (patch) | |
tree | f7a5f7f18c9be0ecb4b5965ebf21a9d2b07af793 /src/psbt.h | |
parent | 5055d07edf4625d23c36d548d3598d7b578c05fb (diff) | |
download | bitcoin-48033d43dc30fcee2c9a38c828d2f58d3bc11827.tar.xz |
clang-tidy: Fix `performance-for-range-copy` in headers
See https://clang.llvm.org/extra/clang-tidy/checks/performance/for-range-copy.html
Diffstat (limited to 'src/psbt.h')
-rw-r--r-- | src/psbt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/psbt.h b/src/psbt.h index b636f0348b..fc9ac71eee 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -178,7 +178,7 @@ void SerializeHDKeypath(Stream& s, KeyOriginInfo hd_keypath) template<typename Stream> 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()) { throw std::ios_base::failure("Invalid CPubKey being serialized"); } |