Fix VC6 Compile.
This commit is contained in:
@@ -55,7 +55,7 @@ static void CheckXToStringParamType( const char **p ) { }
|
||||
static auto_ptr<CString> as_##X##Name[CNT]; \
|
||||
if( as_##X##Name[0].get() == NULL ) { \
|
||||
for( unsigned i = 0; i < CNT; ++i ) \
|
||||
as_##X##Name[i].reset( new CString(X##Names[i]) ); \
|
||||
as_##X##Name[i] = auto_ptr<CString> ( new CString( X##Names[i] ) ); \
|
||||
} \
|
||||
ASSERT( CNT == ARRAYSIZE(X##Names) ); \
|
||||
if( x == CNT+1 ) \
|
||||
@@ -83,7 +83,7 @@ static void CheckXToStringParamType( const char **p ) { }
|
||||
static auto_ptr<LocalizedString> g_##X##Name[NUM_##X]; \
|
||||
if( g_##X##Name[0].get() == NULL ) { \
|
||||
for( unsigned i = 0; i < NUM_##X; ++i ) \
|
||||
g_##X##Name[i].reset( new LocalizedString(#X, X##ToString((X)i)) ); \
|
||||
g_##X##Name[i] = auto_ptr<LocalizedString> ( new LocalizedString(#X, X##ToString((X)i)) ); \
|
||||
} \
|
||||
return g_##X##Name[x]->GetValue(); \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user