From 4b0d45e98392ab65ea2deb61410fb13103ce4b9d Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Thu, 5 Jan 2006 01:26:04 +0000 Subject: [PATCH] Fix VC6 Compile. --- stepmania/src/EnumHelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/EnumHelper.h b/stepmania/src/EnumHelper.h index 6e64e9d3f4..024d045d2e 100644 --- a/stepmania/src/EnumHelper.h +++ b/stepmania/src/EnumHelper.h @@ -55,7 +55,7 @@ static void CheckXToStringParamType( const char **p ) { } static auto_ptr 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 ( 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 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 ( new LocalizedString(#X, X##ToString((X)i)) ); \ } \ return g_##X##Name[x]->GetValue(); \ }