Fix scoping error.
This commit is contained in:
@@ -37,7 +37,8 @@ const static CString EMPTY_STRING;
|
|||||||
{ \
|
{ \
|
||||||
CString s2 = s; \
|
CString s2 = s; \
|
||||||
s2.MakeLower(); \
|
s2.MakeLower(); \
|
||||||
for( unsigned i = 0; i < ARRAYSIZE(X##Names); ++i ) \
|
unsigned i; \
|
||||||
|
for( i = 0; i < ARRAYSIZE(X##Names); ++i ) \
|
||||||
if( !s2.CompareNoCase(X##Names[i]) ) \
|
if( !s2.CompareNoCase(X##Names[i]) ) \
|
||||||
return (X)i; \
|
return (X)i; \
|
||||||
return (X)(i+1); /*invalid*/ \
|
return (X)(i+1); /*invalid*/ \
|
||||||
|
|||||||
Reference in New Issue
Block a user