diff options
| author | Lee Clagett <code@leeclagett.com> | 2021-01-28 23:42:40 -0500 |
|---|---|---|
| committer | Lee Clagett <code@leeclagett.com> | 2021-01-28 23:42:40 -0500 |
| commit | bd129849f0b634bddf64a195097b15d585e8f2bd (patch) | |
| tree | a8aba2ce30da01d1310b468b8cc63dac2e044cf6 /src/simplewallet | |
| parent | 1572df9e26eeeee9ee4236246f390fcdd50253cf (diff) | |
| download | monzero-core-bd129849f0b634bddf64a195097b15d585e8f2bd.tar.gz monzero-core-bd129849f0b634bddf64a195097b15d585e8f2bd.tar.xz monzero-core-bd129849f0b634bddf64a195097b15d585e8f2bd.zip | |
Remove copies from foreach loops (thanks to Clang)
Diffstat (limited to 'src/simplewallet')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index dfd6adf3a..be3cc2b74 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -9466,7 +9466,7 @@ void simple_wallet::print_accounts() { const std::pair<std::map<std::string, std::string>, std::vector<std::string>>& account_tags = m_wallet->get_account_tags(); size_t num_untagged_accounts = m_wallet->get_num_subaddress_accounts(); - for (const std::pair<std::string, std::string>& p : account_tags.first) + for (const std::pair<const std::string, std::string>& p : account_tags.first) { const std::string& tag = p.first; print_accounts(tag); |
