diff dmd/TypeDelegate.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents 10317f0c89a5
children acd69f84627e
line wrap: on
line diff
--- a/dmd/TypeDelegate.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/TypeDelegate.d	Sat Aug 28 16:19:48 2010 +0200
@@ -47,7 +47,7 @@
 		assert(false);
 	}
 }
-    Type syntaxCopy()
+    override Type syntaxCopy()
 	{
 		Type t = next.syntaxCopy();
 		if (t == next)
@@ -60,7 +60,7 @@
 		return t;
 	}
 	
-    Type semantic(Loc loc, Scope sc)
+    override Type semantic(Loc loc, Scope sc)
 	{
 		if (deco)			// if semantic() already run
 		{
@@ -72,12 +72,12 @@
 		return merge();
 	}
 	
-    ulong size(Loc loc)
+    override ulong size(Loc loc)
 	{
 		return PTRSIZE * 2;
 	}
 	
-    void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
+    override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
 	{
 		if (mod != this.mod)
 		{	
@@ -91,7 +91,7 @@
 		Argument.argsToCBuffer(buf, hgs, tf.parameters, tf.varargs);
 	}
 	
-    Expression defaultInit(Loc loc)
+    override Expression defaultInit(Loc loc)
 	{
 	version (LOGDEFAULTINIT) {
 		printf("TypeDelegate.defaultInit() '%s'\n", toChars());
@@ -102,22 +102,22 @@
 		return e;
 	}
 	
-    bool isZeroInit(Loc loc)
+    override bool isZeroInit(Loc loc)
 	{
 		return true;
 	}
 	
-    bool checkBoolean()
+    override bool checkBoolean()
 	{
 		return true;
 	}
 	
-    TypeInfoDeclaration getTypeInfoDeclaration()
+    override TypeInfoDeclaration getTypeInfoDeclaration()
 	{
 		return new TypeInfoDelegateDeclaration(this);
 	}
 	
-    Expression dotExp(Scope sc, Expression e, Identifier ident)
+    override Expression dotExp(Scope sc, Expression e, Identifier ident)
 	{
 	version (LOGDOTEXP) {
 		printf("TypeDelegate.dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
@@ -144,7 +144,7 @@
 		return e;
 	}
 	
-    bool hasPointers()
+    override bool hasPointers()
 	{
 		return true;
 	}
@@ -156,7 +156,7 @@
 	}
 }
 
-    type* toCtype()
+    override type* toCtype()
 	{
 		type* t;
 
@@ -210,4 +210,4 @@
 		ctype = t;
 		return t;
 	}
-}
\ No newline at end of file
+}