aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2018-06-15 13:38:54 -0400
committerCory Fields <cory-nospam-@coryfields.com>2018-06-15 13:40:00 -0400
commit466e16e0e8523909f9968c5823691b1d4a3d8175 (patch)
tree13b29dab45a96166b084144cacf86396db8638fc /src/wallet
parentbe27048a1842b76de5b230383c1466b72dfd8cc5 (diff)
cleanup: avoid hidden copies in range-for loops
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index daeff1d0e8..74312b7124 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -200,7 +200,7 @@ bool WalletInit::Verify() const
// Keep track of each wallet absolute path to detect duplicates.
std::set<fs::path> wallet_paths;
- for (const auto wallet_file : wallet_files) {
+ for (const auto& wallet_file : wallet_files) {
fs::path wallet_path = fs::absolute(wallet_file, GetWalletDir());
if (!wallet_paths.insert(wallet_path).second) {