aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2021-01-28 23:42:40 -0500
committerLee Clagett <code@leeclagett.com>2021-01-28 23:42:40 -0500
commitbd129849f0b634bddf64a195097b15d585e8f2bd (patch)
treea8aba2ce30da01d1310b468b8cc63dac2e044cf6 /src/wallet
parentRemoving unused namespace alias (diff)
downloadmonero-bd129849f0b634bddf64a195097b15d585e8f2bd.tar.xz
Remove copies from foreach loops (thanks to Clang)
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
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();