a few minor (but easy) performance tweaks

Found by codacy.com
This commit is contained in:
moneromooo-monero 2018-11-23 13:25:15 +00:00
parent 3002307418
commit 611639710d
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
11 changed files with 21 additions and 21 deletions

View file

@ -322,7 +322,7 @@ namespace cryptonote {
}
//--------------------------------------------------------------------------------
bool parse_hash256(const std::string str_hash, crypto::hash& hash)
bool parse_hash256(const std::string &str_hash, crypto::hash& hash)
{
std::string buf;
bool res = epee::string_tools::parse_hexstr_to_binbuff(str_hash, buf);