aboutsummaryrefslogtreecommitdiff
path: root/src/common/base58.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-23 13:25:15 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-23 15:36:48 +0000
commit611639710d9f3665999b4ec71a52efc73aca4853 (patch)
treef96d8071362577844e221a837ae6e5b0799b304c /src/common/base58.cpp
parenttests: slow_memmem now returns size_t (diff)
downloadmonero-611639710d9f3665999b4ec71a52efc73aca4853.tar.xz
a few minor (but easy) performance tweaks
Found by codacy.com
Diffstat (limited to '')
-rw-r--r--src/common/base58.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/base58.cpp b/src/common/base58.cpp
index b28a04f20..432105da4 100644
--- a/src/common/base58.cpp
+++ b/src/common/base58.cpp
@@ -235,7 +235,7 @@ namespace tools
return encode(buf);
}
- bool decode_addr(std::string addr, uint64_t& tag, std::string& data)
+ bool decode_addr(const std::string &addr, uint64_t& tag, std::string& data)
{
std::string addr_data;
bool r = decode(addr, addr_data);