Allow compiler to enforce char vs wxUniChar.

This commit is contained in:
Jeff Young
2026-03-17 14:25:18 +00:00
parent d1f7bf6e83
commit 71b48eabd7
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -214,7 +214,7 @@ bool NUMERIC_EVALUATOR::IsOldSchoolDecimalSeparator( wxUniChar ch, double* siSca
// Limited version of above for 8-bit chars
bool NUMERIC_EVALUATOR::isOldSchoolDecimalSeparator( char ch, double* siScaler )
bool NUMERIC_EVALUATOR::IsOldSchoolDecimalSeparator( char ch, double* siScaler )
{
switch( ch )
{
@@ -242,7 +242,7 @@ bool NUMERIC_EVALUATOR::IsDecimalSeparator( char ch, char localeSeparator, bool
if( ch == localeSeparator || ch == '.' || ch == ',' )
return true;
if( allowInfixNotation && isOldSchoolDecimalSeparator( ch, &dummy ) )
if( allowInfixNotation && IsOldSchoolDecimalSeparator( ch, &dummy ) )
return true;
return false;
@@ -294,7 +294,7 @@ NUMERIC_EVALUATOR::Token NUMERIC_EVALUATOR::getToken()
else
haveSeparator = true;
if( isOldSchoolDecimalSeparator( ch, &siScaler ) )
if( IsOldSchoolDecimalSeparator( ch, &siScaler ) )
*aScaler = siScaler;
m_token.token[ idx++ ] = m_localeDecimalSeparator;
@@ -410,7 +410,7 @@ NUMERIC_EVALUATOR::Token NUMERIC_EVALUATOR::getToken()
return Unit::Mil;
}
if( allowInfix && sizeLeft >= 1 && isOldSchoolDecimalSeparator( ch, siScaler ) )
if( allowInfix && sizeLeft >= 1 && IsOldSchoolDecimalSeparator( ch, siScaler ) )
{
m_token.pos++;
return Unit::SI;
+1 -1
View File
@@ -157,7 +157,7 @@ public:
void ClearVar() { m_varMap.clear(); }
static bool IsOldSchoolDecimalSeparator( wxUniChar ch, double* siScaler );
static bool isOldSchoolDecimalSeparator( char ch, double* siScaler );
static bool IsOldSchoolDecimalSeparator( char ch, double* siScaler );
static bool IsDecimalSeparator( char ch, char localeSeparator, bool allowInfixNotation );
static bool IsDigit( char ch );