aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.cpp
diff options
context:
space:
mode:
authorAurèle Oulès <aurele@oules.com>2022-07-26 11:12:53 +0200
committerAurèle Oulès <aurele@oules.com>2022-07-27 13:27:57 +0200
commit081b0e53e3adca7ea57d23e5fcd9db4b86415a72 (patch)
tree877f1eb2d246084e645f8cf5961d5541438a308b /src/wallet/scriptpubkeyman.cpp
parent7f79746bf046d0028bb68f265804b9774dec2acb (diff)
downloadbitcoin-081b0e53e3adca7ea57d23e5fcd9db4b86415a72.tar.xz
refactor: Make const refs vars where applicable
This avoids initializing variables with the copy-constructor of a non-trivially copyable type.
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r--src/wallet/scriptpubkeyman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp
index bba31dfe0b..faed037ed7 100644
--- a/src/wallet/scriptpubkeyman.cpp
+++ b/src/wallet/scriptpubkeyman.cpp
@@ -1789,7 +1789,7 @@ std::map<CKeyID, CKey> DescriptorScriptPubKeyMan::GetKeys() const
AssertLockHeld(cs_desc_man);
if (m_storage.HasEncryptionKeys() && !m_storage.IsLocked()) {
KeyMap keys;
- for (auto key_pair : m_map_crypted_keys) {
+ for (const auto& key_pair : m_map_crypted_keys) {
const CPubKey& pubkey = key_pair.second.first;
const std::vector<unsigned char>& crypted_secret = key_pair.second.second;
CKey key;