summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul ProductEngine <pguslisty@productengine.com>2011-05-18 21:07:06 +0300
committerPaul ProductEngine <pguslisty@productengine.com>2011-05-18 21:07:06 +0300
commitf02d6e7095d526bc7abc75cc796dc4f07c9b18c7 (patch)
tree851dcdd05c6d99588976f90f86f8302ab6cd0598
parenta9d7ee879216857fd61b36c70ffea257021c869a (diff)
STORM-1202 ADDITIONAL_FIX Workaround for another Windows build issue.
-rw-r--r--indra/llui/lltimectrl.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/llui/lltimectrl.cpp b/indra/llui/lltimectrl.cpp
index 4b49c45006..a77842a392 100644
--- a/indra/llui/lltimectrl.cpp
+++ b/indra/llui/lltimectrl.cpp
@@ -225,7 +225,8 @@ bool LLTimeCtrl::isTimeStringValid(const LLWString &wstr)
bool LLTimeCtrl::isHoursStringValid(const LLWString& wstr)
{
U32 hours;
- if ((!LLWStringUtil::convertToU32(wstr, hours) || (hours <= HOURS_MAX)) && wstr.length() < 3)
+ std::string utf8time = wstring_to_utf8str(wstr);
+ if ((!LLStringUtil::convertToU32(utf8time, hours) || (hours <= HOURS_MAX)) && wstr.length() < 3)
return true;
return false;
@@ -234,7 +235,8 @@ bool LLTimeCtrl::isHoursStringValid(const LLWString& wstr)
bool LLTimeCtrl::isMinutesStringValid(const LLWString& wstr)
{
U32 minutes;
- if (!LLWStringUtil::convertToU32(wstr, minutes) || (minutes <= MINUTES_MAX) && wstr.length() < 3)
+ std::string utf8time = wstring_to_utf8str(wstr);
+ if (!LLStringUtil::convertToU32(utf8time, minutes) || (minutes <= MINUTES_MAX) && wstr.length() < 3)
return true;
return false;
@@ -243,7 +245,8 @@ bool LLTimeCtrl::isMinutesStringValid(const LLWString& wstr)
void LLTimeCtrl::validateHours(const LLWString& wstr)
{
U32 hours;
- if (LLWStringUtil::convertToU32(wstr, hours) && (hours >= HOURS_MIN) && (hours <= HOURS_MAX))
+ std::string utf8time = wstring_to_utf8str(wstr);
+ if (LLStringUtil::convertToU32(utf8time, hours) && (hours >= HOURS_MIN) && (hours <= HOURS_MAX))
{
mHours = hours;
}
@@ -256,7 +259,8 @@ void LLTimeCtrl::validateHours(const LLWString& wstr)
void LLTimeCtrl::validateMinutes(const LLWString& wstr)
{
U32 minutes;
- if (LLWStringUtil::convertToU32(wstr, minutes) && (minutes >= MINUTES_MIN) && (minutes <= MINUTES_MAX))
+ std::string utf8time = wstring_to_utf8str(wstr);
+ if (LLStringUtil::convertToU32(utf8time, minutes) && (minutes >= MINUTES_MIN) && (minutes <= MINUTES_MAX))
{
mMinutes = minutes;
}