diff options
author | Karsten Weiss <> | 2016-12-15 04:56:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-12-15 04:58:19 +0300 |
commit | 820709c14d3917db86c6c392df75a32d52c53ca2 (patch) | |
tree | 5e11f59b014b39a88d73c0442297afdc56b03dd2 /intern/string | |
parent | 741c4082d822baa0b3b3b948460de39cee607089 (diff) |
Fix STR_String Capitalize on non Win32
Harmless since its not used, but good to fix.
Diffstat (limited to 'intern/string')
-rw-r--r-- | intern/string/intern/STR_String.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/string/intern/STR_String.cpp b/intern/string/intern/STR_String.cpp index 4ea451311e4..4612c91b6a6 100644 --- a/intern/string/intern/STR_String.cpp +++ b/intern/string/intern/STR_String.cpp @@ -545,9 +545,9 @@ STR_String& STR_String::Capitalize() if (this->m_len > 1) _strlwr(this->m_data + 1); #else if (this->m_len > 0) - this->m_data[0] = (this->m_data[0] >= 'A' && this->m_data[0] <= 'A') ? this->m_data[0] + 'a' - 'A' : this->m_data[0]; + this->m_data[0] = (this->m_data[0] >= 'a' && this->m_data[0] <= 'z') ? this->m_data[0] + 'A' - 'a' : this->m_data[0]; for (int i = 1; i < this->m_len; i++) - this->m_data[i] = (this->m_data[i] >= 'a' && this->m_data[i] <= 'z') ? this->m_data[i] + 'A' - 'a' : this->m_data[i]; + this->m_data[i] = (this->m_data[i] >= 'A' && this->m_data[i] <= 'Z') ? this->m_data[i] + 'a' - 'A' : this->m_data[i]; #endif return *this; } |