瀏覽代碼

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

Lloyd Weehuizen 15 年之前
父節點
當前提交
d7bb16da69
共有 1 個文件被更改,包括 1 次插入4 次删除
  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: