diff options
| author | Karl-Johan Alm <[email protected]> | 2019-08-07 13:42:54 +0900 |
|---|---|---|
| committer | Karl-Johan Alm <[email protected]> | 2019-08-08 11:35:14 +0900 |
| commit | 0481fa25844dc6ec9f6c3fac8428d874d34b0ad0 (patch) | |
| tree | a47bab88fa0ff0abc0ea48b3c90cce6bd3e86a00 /src/util/system.cpp | |
| parent | Merge #16554: test: only include and use OpenSSL where it's actually needed (... (diff) | |
| download | discoin-0481fa25844dc6ec9f6c3fac8428d874d34b0ad0.tar.xz discoin-0481fa25844dc6ec9f6c3fac8428d874d34b0ad0.zip | |
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 f8fcbc120..f8bcc45a6 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 |