diff options
author | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2019-08-07 13:42:54 +0900 |
---|---|---|
committer | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2019-08-08 11:35:14 +0900 |
commit | 0481fa25844dc6ec9f6c3fac8428d874d34b0ad0 (patch) | |
tree | a47bab88fa0ff0abc0ea48b3c90cce6bd3e86a00 /src/util/system.cpp | |
parent | e5fdda68c6d2313edb74443f0d1e6d2ce2d97f5e (diff) | |
download | bitcoin-0481fa25844dc6ec9f6c3fac8428d874d34b0ad0.tar.xz |
util: refactor upper/lowercase functions
This includes renaming Downcase() to ToLower() and make it return a string rather than modify referenced arg.
Also adds ToUpper() string version.
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r-- | src/util/system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index f8fcbc1206..f8bcc45a6a 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -388,7 +388,7 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin key.erase(is_index); } #ifdef WIN32 - std::transform(key.begin(), key.end(), key.begin(), ToLower); + key = ToLower(key); if (key[0] == '/') key[0] = '-'; #endif |