Mercurial > projects > ddmd
diff dmd/CompileDeclaration.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 | 460959608115 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/CompileDeclaration.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/CompileDeclaration.d Sat Aug 28 16:19:48 2010 +0200 @@ -35,14 +35,14 @@ this.compiled = false; } - Dsymbol syntaxCopy(Dsymbol s) + override Dsymbol syntaxCopy(Dsymbol s) { //printf("CompileDeclaration.syntaxCopy('%s')\n", toChars()); CompileDeclaration sc = new CompileDeclaration(loc, exp.syntaxCopy()); return sc; } - bool addMember(Scope sc, ScopeDsymbol sd, bool memnum) + override bool addMember(Scope sc, ScopeDsymbol sd, bool memnum) { //printf("CompileDeclaration.addMember(sc = %p, memnum = %d)\n", sc, memnum); bool m = false; @@ -79,7 +79,7 @@ } } - void semantic(Scope sc) + override void semantic(Scope sc) { //printf("CompileDeclaration.semantic()\n"); @@ -92,7 +92,7 @@ AttribDeclaration.semantic(sc); } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring("mixin("); exp.toCBuffer(buf, hgs);