From 48033d43dc30fcee2c9a38c828d2f58d3bc11827 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 16 Dec 2022 10:53:55 +0000 Subject: [PATCH] clang-tidy: Fix `performance-for-range-copy` in headers See https://clang.llvm.org/extra/clang-tidy/checks/performance/for-range-copy.html --- src/psbt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psbt.h b/src/psbt.h index b636f0348b7..fc9ac71eee9 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -178,7 +178,7 @@ void SerializeHDKeypath(Stream& s, KeyOriginInfo hd_keypath) template void SerializeHDKeypaths(Stream& s, const std::map& 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"); }