]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/common.cpp
Fixed stupid bug in case conversion functions.
[stg.git] / stglibs / common.lib / common.cpp
index c02f675c943c9c93abd6cbb9407eda1d1d84ea32..763df5327976b77c141830d310def3999d8b2917 100644 (file)
@@ -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