Skip to content

Commit 48033d4

Browse files
committed
clang-tidy: Fix performance-for-range-copy in headers
See https://clang.llvm.org/extra/clang-tidy/checks/performance/for-range-copy.html
1 parent 5055d07 commit 48033d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psbt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void SerializeHDKeypath(Stream& s, KeyOriginInfo hd_keypath)
178178
template<typename Stream>
179179
void SerializeHDKeypaths(Stream& s, const std::map<CPubKey, KeyOriginInfo>& hd_keypaths, CompactSizeWriter type)
180180
{
181-
for (auto keypath_pair : hd_keypaths) {
181+
for (const auto& keypath_pair : hd_keypaths) {
182182
if (!keypath_pair.first.IsValid()) {
183183
throw std::ios_base::failure("Invalid CPubKey being serialized");
184184
}

0 commit comments

Comments
 (0)