X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a8689998a9b2cfc17dc260b423cce8ff2e407adb..6d5f129aad1a6cbaf4d1441c68398e00fa949185:/stglibs/common.lib/common.cpp diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp index c02f675c..763df532 100644 --- a/stglibs/common.lib/common.cpp +++ b/stglibs/common.lib/common.cpp @@ -824,7 +824,7 @@ std::string ToLower(const std::string & value) std::string res; for (std::string::size_type pos = 0; pos < value.length(); ++pos) res += tolower(value[pos]); - return value; + return res; } //--------------------------------------------------------------------------- std::string ToUpper(const std::string & value) @@ -832,7 +832,7 @@ std::string ToUpper(const std::string & value) std::string res; for (std::string::size_type pos = 0; pos < value.length(); ++pos) res += toupper(value[pos]); - return value; + return res; } //--------------------------------------------------------------------------- #ifdef WIN32