diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index ba56e69361f..d7024b61f15 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -14991,7 +14991,7 @@ std::string wallet2::make_uri(const std::vector &addresses, const s bool recipients_used = false; for (size_t i = 0; i < addresses.size(); i++) { - std::string &address = addresses[i]; + const std::string &address = addresses[i]; cryptonote::address_parse_info info; if (!get_account_address_from_str(info, nettype(), address)) {