diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2018-06-15 13:38:54 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-06-15 13:40:00 -0400 |
commit | 466e16e0e8523909f9968c5823691b1d4a3d8175 (patch) | |
tree | 13b29dab45a96166b084144cacf86396db8638fc /src/wallet/init.cpp | |
parent | be27048a1842b76de5b230383c1466b72dfd8cc5 (diff) |
cleanup: avoid hidden copies in range-for loops
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r-- | src/wallet/init.cpp | 2 |
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) { |