diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-23 13:25:15 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-23 15:36:48 +0000 |
commit | 611639710d9f3665999b4ec71a52efc73aca4853 (patch) | |
tree | f96d8071362577844e221a837ae6e5b0799b304c /src/common | |
parent | tests: slow_memmem now returns size_t (diff) | |
download | monero-611639710d9f3665999b4ec71a52efc73aca4853.tar.xz |
a few minor (but easy) performance tweaks
Found by codacy.com
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/base58.cpp | 2 | ||||
-rw-r--r-- | src/common/base58.h | 2 |
2 files changed, 2 insertions, 2 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); diff --git a/src/common/base58.h b/src/common/base58.h index 02ca96956..69611859d 100644 --- a/src/common/base58.h +++ b/src/common/base58.h @@ -41,6 +41,6 @@ namespace tools bool decode(const std::string& enc, std::string& data); std::string encode_addr(uint64_t tag, const std::string& data); - 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); } } |