Fix scoping error.

This commit is contained in:
Steve Checkoway
2004-03-12 09:22:44 +00:00
parent 28f4764ed2
commit 83d23da521
+2 -1
View File
@@ -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*/ \