diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-10 15:05:48 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-18 15:15:19 +0000 |
commit | ba2fefb9a4280c26f3046da78aaee812228ee7a5 (patch) | |
tree | 8439bed1d10b65d11802aca33e84f332c79151e2 /src/checkpoints/checkpoints.h | |
parent | mlog: terminate a string at last char, just in case (diff) | |
download | monero-ba2fefb9a4280c26f3046da78aaee812228ee7a5.tar.xz |
checkpoints: pass std::string by const ref, not const value
Diffstat (limited to 'src/checkpoints/checkpoints.h')
-rw-r--r-- | src/checkpoints/checkpoints.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkpoints/checkpoints.h b/src/checkpoints/checkpoints.h index 3e034f6f0..83969f7b8 100644 --- a/src/checkpoints/checkpoints.h +++ b/src/checkpoints/checkpoints.h @@ -165,7 +165,7 @@ namespace cryptonote * * @return true if loading successful and no conflicts */ - bool load_new_checkpoints(const std::string json_hashfile_fullpath, bool testnet=false, bool dns=true); + bool load_new_checkpoints(const std::string &json_hashfile_fullpath, bool testnet=false, bool dns=true); /** * @brief load new checkpoints from json @@ -174,7 +174,7 @@ namespace cryptonote * * @return true if loading successful and no conflicts */ - bool load_checkpoints_from_json(const std::string json_hashfile_fullpath); + bool load_checkpoints_from_json(const std::string &json_hashfile_fullpath); /** * @brief load new checkpoints from DNS |