diff dmd/TypeInfoStructDeclaration.d @ 126:1765f3ef917d

ClassDeclarations, Arguments -> Vector
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Fri, 03 Sep 2010 23:25:55 +0100
parents e28b18c23469
children 60bb0fe4563e
line wrap: on
line diff
--- a/dmd/TypeInfoStructDeclaration.d	Fri Sep 03 22:17:54 2010 +0100
+++ b/dmd/TypeInfoStructDeclaration.d	Fri Sep 03 23:25:55 2010 +0100
@@ -100,16 +100,16 @@
 		{	
 			// bool opEqual(const T*) const;
 			scope Scope sc = new Scope();
-			Arguments arguments = new Arguments;
+			auto arguments = new Arguments;
 		version (STRUCTTHISREF) {
 			// arg type is ref const T
-			Argument arg = new Argument(STC.STCref, tc.constOf(), null, null);
+			auto arg = new Argument(STC.STCref, tc.constOf(), null, null);
 		} else {
 			// arg type is const T*
-			Argument arg = new Argument(STC.STCin, tc.pointerTo(), null, null);
+			auto arg = new Argument(STC.STCin, tc.pointerTo(), null, null);
 		}
 
-			arguments.push(cast(void*)arg);
+			arguments.push(arg);
 			tfeqptr = new TypeFunction(arguments, Type.tbool, 0, LINK.LINKd);
 			tfeqptr.mod = MOD.MODconst;
 			tfeqptr = cast(TypeFunction)tfeqptr.semantic(Loc(0), sc);
@@ -118,16 +118,16 @@
 		TypeFunction tfcmpptr;
 		{
 			scope Scope sc = new Scope();
-			Arguments arguments = new Arguments;
+			auto arguments = new Arguments;
 		version (STRUCTTHISREF) {
 			// arg type is ref const T
-			Argument arg = new Argument(STC.STCref, tc.constOf(), null, null);
+			auto arg = new Argument(STC.STCref, tc.constOf(), null, null);
 		} else {
 			// arg type is const T*
-			Argument arg = new Argument(STC.STCin, tc.pointerTo(), null, null);
+			auto arg = new Argument(STC.STCin, tc.pointerTo(), null, null);
 		}
 
-			arguments.push(cast(void*)arg);
+			arguments.push(arg);
 			tfcmpptr = new TypeFunction(arguments, Type.tint32, 0, LINK.LINKd);
 			tfcmpptr.mod = MOD.MODconst;
 			tfcmpptr = cast(TypeFunction)tfcmpptr.semantic(Loc(0), sc);