diff dmd/InvariantDeclaration.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 43073c7c7769
line wrap: on
line diff
--- a/dmd/InvariantDeclaration.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/InvariantDeclaration.d	Sat Aug 28 16:19:48 2010 +0200
@@ -20,7 +20,7 @@
 		super(loc, endloc, Id.classInvariant, STCundefined, null);
 	}
 
-    Dsymbol syntaxCopy(Dsymbol s)
+    override Dsymbol syntaxCopy(Dsymbol s)
 	{
 		assert(!s);
 		InvariantDeclaration id = new InvariantDeclaration(loc, endloc);
@@ -28,7 +28,7 @@
 		return id;
 	}
 
-    void semantic(Scope sc)
+    override void semantic(Scope sc)
 	{
 		AggregateDeclaration ad;
 		Type tret;
@@ -58,27 +58,27 @@
 		sc.pop();
 	}
 
-    bool isVirtual()
+    override bool isVirtual()
 	{
 		return false;
 	}
 
-    bool addPreInvariant()
+    override bool addPreInvariant()
 	{
 		return false;
 	}
 
-    bool addPostInvariant()
+    override bool addPostInvariant()
 	{
 		return false;
 	}
 
-    void emitComment(Scope sc)
+    override void emitComment(Scope sc)
 	{
 		assert(false);
 	}
 
-    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		if (hgs.hdrgen)
 			return;
@@ -86,5 +86,5 @@
 		bodyToCBuffer(buf, hgs);
 	}
 
-    InvariantDeclaration isInvariantDeclaration() { return this; }
-}
\ No newline at end of file
+    override InvariantDeclaration isInvariantDeclaration() { return this; }
+}