diff --git a/Source/Engine/Platform/StringUtils.h b/Source/Engine/Platform/StringUtils.h index 7b2b0572a..af9267e16 100644 --- a/Source/Engine/Platform/StringUtils.h +++ b/Source/Engine/Platform/StringUtils.h @@ -196,12 +196,12 @@ public: static int32 HexDigit(Char c); // Parses text to unsigned integer value. Returns true if failed to convert the value. - template - static bool ParseHex(const CharType* str, int32 length, uint32* result) + template + static bool ParseHex(const T* str, int32 length, uint32* result) { uint32 sum = 0; - const CharType* p = str; - const CharType* end = str + length; + const T* p = str; + const T* end = str + length; if (*p == '0' && *(p + 1) == 'x') p += 2; while (*p && p < end) @@ -221,10 +221,10 @@ public: } // Parses text to unsigned integer value. Returns true if failed to convert the value. - template - static bool ParseHex(const CharType* str, uint32* result) + template + static bool ParseHex(const T* str, uint32* result) { - return StringUtils::ParseHex(str, StringUtils::Length(str), result); + return StringUtils::ParseHex(str, StringUtils::Length((const T*)str), result); } // Parses text to the unsigned integer value. Returns true if failed to convert the value. @@ -321,7 +321,7 @@ public: template static bool Parse(const T* str, U* result) { - return StringUtils::Parse(str, StringUtils::Length(str), result); + return StringUtils::Parse((const T*)str, StringUtils::Length((const T*)str), (U*)result); } // Parses text to the scalar value. Returns true if failed to convert the value.