aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints/checkpoints.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-10 15:05:48 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-18 15:15:19 +0000
commitba2fefb9a4280c26f3046da78aaee812228ee7a5 (patch)
tree8439bed1d10b65d11802aca33e84f332c79151e2 /src/checkpoints/checkpoints.cpp
parentmlog: terminate a string at last char, just in case (diff)
downloadmonero-ba2fefb9a4280c26f3046da78aaee812228ee7a5.tar.xz
checkpoints: pass std::string by const ref, not const value
Diffstat (limited to 'src/checkpoints/checkpoints.cpp')
-rw-r--r--src/checkpoints/checkpoints.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkpoints/checkpoints.cpp b/src/checkpoints/checkpoints.cpp
index c66c4f5d6..e6253c73d 100644
--- a/src/checkpoints/checkpoints.cpp
+++ b/src/checkpoints/checkpoints.cpp
@@ -204,7 +204,7 @@ namespace cryptonote
return true;
}
- bool checkpoints::load_checkpoints_from_json(const std::string json_hashfile_fullpath)
+ bool checkpoints::load_checkpoints_from_json(const std::string &json_hashfile_fullpath)
{
boost::system::error_code errcode;
if (! (boost::filesystem::exists(json_hashfile_fullpath, errcode)))
@@ -286,7 +286,7 @@ namespace cryptonote
return true;
}
- bool checkpoints::load_new_checkpoints(const std::string json_hashfile_fullpath, bool testnet, bool dns)
+ bool checkpoints::load_new_checkpoints(const std::string &json_hashfile_fullpath, bool testnet, bool dns)
{
bool result;