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/wallet | |
parent | Removing unused namespace alias (diff) | |
download | monero-bd129849f0b634bddf64a195097b15d585e8f2bd.tar.xz |
Remove copies from foreach loops (thanks to Clang)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 03db8b70f..97bbfb649 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -687,7 +687,7 @@ namespace tools { if (!m_wallet) return not_open(er); const std::pair<std::map<std::string, std::string>, std::vector<std::string>> account_tags = m_wallet->get_account_tags(); - 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) { res.account_tags.resize(res.account_tags.size() + 1); auto& info = res.account_tags.back(); |