mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 22:22:33 -04:00
Remove copies from foreach loops (thanks to Clang)
This commit is contained in:
parent
1572df9e26
commit
bd129849f0
8 changed files with 17 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue