aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-12-16 10:53:55 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-12-16 10:53:55 +0000
commit48033d43dc30fcee2c9a38c828d2f58d3bc11827 (patch)
treef7a5f7f18c9be0ecb4b5965ebf21a9d2b07af793 /src/psbt.h
parent5055d07edf4625d23c36d548d3598d7b578c05fb (diff)
downloadbitcoin-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.h2
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");
}