Browse Source

Remove "interface" keyword from variant, VS2010 doesn't like this.

Lloyd Weehuizen 15 years ago
parent
commit
d7bb16da69
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Include/Rocket/Core/Variant.inl

+ 1 - 4
Include/Rocket/Core/Variant.inl

@@ -76,10 +76,7 @@ bool Variant::GetInto(T& value) const
 		break;
 
 		case SCRIPTINTERFACE:
-		{
-			ScriptInterface* interface = (ScriptInterface*) data_block->data_ptr;
-			return TypeConverter< ScriptInterface*, T >::Convert(interface, value);			
-		}
+			return TypeConverter< ScriptInterface*, T >::Convert((ScriptInterface*)data_block->data_ptr, value);
 		break;
 
 		case VOIDPTR: