cleanup: avoid hidden copies in range-for loops

This commit is contained in:
Cory Fields
2018-06-15 13:38:54 -04:00
parent be27048a18
commit 466e16e0e8
6 changed files with 9 additions and 9 deletions

View File

@@ -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) {