aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.cpp
diff options
context:
space:
mode:
authorKarl-Johan Alm <[email protected]>2019-08-07 13:42:54 +0900
committerKarl-Johan Alm <[email protected]>2019-08-08 11:35:14 +0900
commit0481fa25844dc6ec9f6c3fac8428d874d34b0ad0 (patch)
treea47bab88fa0ff0abc0ea48b3c90cce6bd3e86a00 /src/util/system.cpp
parentMerge #16554: test: only include and use OpenSSL where it's actually needed (... (diff)
downloaddiscoin-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.cpp2
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