diff dmd/TypeNext.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 51605de93870
children acd69f84627e
line wrap: on
line diff
--- a/dmd/TypeNext.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/TypeNext.d	Sat Aug 28 16:19:48 2010 +0200
@@ -31,7 +31,7 @@
 		return cloneTo(new TypeNext(ty, next));
 	}
 }
-    void toDecoBuffer(OutBuffer buf, int flag)
+    override void toDecoBuffer(OutBuffer buf, int flag)
 	{
 		super.toDecoBuffer(buf, flag);
 		assert(next !is this);
@@ -39,24 +39,24 @@
 		next.toDecoBuffer(buf, (flag & 0x100) ? 0 : mod);
 	}
 
-    void checkDeprecated(Loc loc, Scope sc)
+    override void checkDeprecated(Loc loc, Scope sc)
 	{
 		Type.checkDeprecated(loc, sc);
 		if (next)	// next can be null if TypeFunction and auto return type
 			next.checkDeprecated(loc, sc);
 	}
 	
-    Type reliesOnTident()
+    override Type reliesOnTident()
 	{
 		return next.reliesOnTident();
 	}
 	
-    Type nextOf()
+    override Type nextOf()
 	{
 		return next;
 	}
 	
-    Type makeConst()
+    override Type makeConst()
 	{
 		//printf("TypeNext::makeConst() %p, %s\n", this, toChars());
 		if (cto)
@@ -79,7 +79,7 @@
 		return t;
 	}
 	
-    Type makeInvariant()
+    override Type makeInvariant()
 	{
 		//printf("TypeNext::makeInvariant() %s\n", toChars());
 		if (ito)
@@ -95,7 +95,7 @@
 		return t;
 	}
 	
-    Type makeShared()
+    override Type makeShared()
 	{
 		//printf("TypeNext::makeShared() %s\n", toChars());
 		if (sto)
@@ -118,12 +118,12 @@
 		return t;
 	}
 	
-    Type makeSharedConst()
+    override Type makeSharedConst()
 	{
 		assert(false);
 	}
 	
-    MATCH constConv(Type to)
+    override MATCH constConv(Type to)
 	{
 		MATCH m = Type.constConv(to);
 
@@ -138,4 +138,4 @@
 		 */
 		next = next.addMod(mod);
 	}
-}
\ No newline at end of file
+}