Fix compilation regression

This commit is contained in:
Wojtek Figat
2024-10-04 22:16:38 +02:00
parent b9849e2b5c
commit 573e99dd2d

View File

@@ -224,7 +224,7 @@ public:
template<typename CharType> template<typename CharType>
static bool ParseHex(const CharType* str, uint32* result) static bool ParseHex(const CharType* str, uint32* result)
{ {
return ParseHex(str, Length(str), result); return StringUtils::ParseHex(str, StringUtils::Length(str), result);
} }
// Parses text to the unsigned integer value. Returns true if failed to convert the value. // Parses text to the unsigned integer value. Returns true if failed to convert the value.
@@ -247,7 +247,7 @@ public:
static bool Parse(const T* str, uint32 length, uint32* result) static bool Parse(const T* str, uint32 length, uint32* result)
{ {
uint64 tmp; uint64 tmp;
const bool b = Parse(str, length, &tmp); const bool b = StringUtils::Parse(str, length, &tmp);
*result = (uint32)tmp; *result = (uint32)tmp;
return b; return b;
} }
@@ -255,7 +255,7 @@ public:
static bool Parse(const T* str, uint32 length, uint16* result) static bool Parse(const T* str, uint32 length, uint16* result)
{ {
uint64 tmp; uint64 tmp;
const bool b = Parse(str, length, &tmp); const bool b = StringUtils::Parse(str, length, &tmp);
*result = (uint16)tmp; *result = (uint16)tmp;
return b; return b;
} }
@@ -263,7 +263,7 @@ public:
static bool Parse(const T* str, uint32 length, uint8* result) static bool Parse(const T* str, uint32 length, uint8* result)
{ {
uint64 tmp; uint64 tmp;
const bool b = Parse(str, length, &tmp); const bool b = StringUtils::Parse(str, length, &tmp);
*result = (uint8)tmp; *result = (uint8)tmp;
return b; return b;
} }
@@ -296,7 +296,7 @@ public:
static bool Parse(const T* str, uint32 length, int32* result) static bool Parse(const T* str, uint32 length, int32* result)
{ {
int64 tmp; int64 tmp;
const bool b = Parse(str, length, &tmp); const bool b = StringUtils::Parse(str, length, &tmp);
*result = (int32)tmp; *result = (int32)tmp;
return b; return b;
} }
@@ -304,7 +304,7 @@ public:
static bool Parse(const T* str, uint32 length, int16* result) static bool Parse(const T* str, uint32 length, int16* result)
{ {
int64 tmp; int64 tmp;
const bool b = Parse(str, length, &tmp); const bool b = StringUtils::Parse(str, length, &tmp);
*result = (int16)tmp; *result = (int16)tmp;
return b; return b;
} }
@@ -312,7 +312,7 @@ public:
static bool Parse(const T* str, uint32 length, int8* result) static bool Parse(const T* str, uint32 length, int8* result)
{ {
int64 tmp; int64 tmp;
const bool b = Parse(str, length, &tmp); const bool b = StringUtils::Parse(str, length, &tmp);
*result = (int8)tmp; *result = (int8)tmp;
return b; return b;
} }
@@ -321,7 +321,7 @@ public:
template<typename T, typename U> template<typename T, typename U>
static bool Parse(const T* str, U* result) static bool Parse(const T* str, U* result)
{ {
return Parse(str, Length(str), result); return StringUtils::Parse(str, StringUtils::Length(str), result);
} }
// Parses text to the scalar value. Returns true if failed to convert the value. // Parses text to the scalar value. Returns true if failed to convert the value.