aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-29 16:30:24 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-29 16:32:00 +0000
commit07b716bfea0b84facf5445a28b7cbbbe9a1c1c64 (patch)
tree48ac307df99a5ea9baf78aeea1ec379eae77bdec /src/common/util.h
parentMerge pull request #5359 (diff)
downloadmonero-07b716bfea0b84facf5445a28b7cbbbe9a1c1c64.tar.xz
util: name replace_file arguments better
It was confusing unless you read code and the rename(2) man page.
Diffstat (limited to '')
-rw-r--r--src/common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index ef2305bf4..bd4135cfd 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -145,7 +145,7 @@ namespace tools
bool create_directories_if_necessary(const std::string& path);
/*! \brief std::rename wrapper for nix and something strange for windows.
*/
- std::error_code replace_file(const std::string& replacement_name, const std::string& replaced_name);
+ std::error_code replace_file(const std::string& old_name, const std::string& new_name);
bool sanitize_locale();