diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-29 16:30:24 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-29 16:32:00 +0000 |
| commit | 07b716bfea0b84facf5445a28b7cbbbe9a1c1c64 (patch) | |
| tree | 48ac307df99a5ea9baf78aeea1ec379eae77bdec /src/common/util.h | |
| parent | 423d3bb86b7bd6f99e70e0f05c45fae97cd68cd9 (diff) | |
| download | monzero-core-07b716bfea0b84facf5445a28b7cbbbe9a1c1c64.tar.gz monzero-core-07b716bfea0b84facf5445a28b7cbbbe9a1c1c64.tar.xz monzero-core-07b716bfea0b84facf5445a28b7cbbbe9a1c1c64.zip | |
util: name replace_file arguments better
It was confusing unless you read code and the rename(2) man page.
Diffstat (limited to 'src/common/util.h')
| -rw-r--r-- | src/common/util.h | 2 |
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(); |
