From b7e8712548323c7d4bacd999710c9963295f8950 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 10 Aug 2013 18:54:50 +0300 Subject: [PATCH] Fixed stupid bug in case conversion functions. --- stglibs/common.lib/common.cpp | 4 ++-- stglibs/common.lib/include/stg/common.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index 3b1ea275..6c71289b 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -155,7 +155,7 @@ int str2x(const std::string & str, varT & x) x += str[i] - '0'; } - x*= minus; + x *= minus; return 0; } -- 2.43.2