Mercurial > projects > ddmd
diff dmd/StructDeclaration.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 | 0aa7d1437ada |
children | 7e0d548de9e6 |
line wrap: on
line diff
--- a/dmd/StructDeclaration.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/StructDeclaration.d Sat Aug 28 16:19:48 2010 +0200 @@ -82,7 +82,7 @@ postblits = new FuncDeclarations(); /// } - Dsymbol syntaxCopy(Dsymbol s) + override Dsymbol syntaxCopy(Dsymbol s) { StructDeclaration sd; @@ -94,7 +94,7 @@ return sd; } - void semantic(Scope sc) + override void semantic(Scope sc) { int i; Scope sc2; @@ -363,18 +363,18 @@ } } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - string mangle() + override string mangle() { //printf("StructDeclaration.mangle() '%s'\n", toChars()); return Dsymbol.mangle(); } - string kind() + override string kind() { assert(false); } @@ -700,17 +700,17 @@ return fcp; } - void toDocBuffer(OutBuffer buf) + override void toDocBuffer(OutBuffer buf) { assert(false); } - PROT getAccess(Dsymbol smember) // determine access to smember + override PROT getAccess(Dsymbol smember) // determine access to smember { assert(false); } - void toObjFile(int multiobj) // compile to .obj file + override void toObjFile(int multiobj) // compile to .obj file { //printf("StructDeclaration.toObjFile('%s')\n", toChars()); @@ -854,5 +854,5 @@ assert(false); } - StructDeclaration isStructDeclaration() { return this; } -} \ No newline at end of file + override StructDeclaration isStructDeclaration() { return this; } +}