Mercurial > projects > ddmd
diff dmd/DtorDeclaration.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 | 7e0d548de9e6 |
line wrap: on
line diff
--- a/dmd/DtorDeclaration.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/DtorDeclaration.d Sat Aug 28 16:19:48 2010 +0200 @@ -28,12 +28,12 @@ super(loc, endloc, null, STC.init, null); } - Dsymbol syntaxCopy(Dsymbol) + override Dsymbol syntaxCopy(Dsymbol) { assert(false); } - void semantic(Scope sc) + override void semantic(Scope sc) { //printf("DtorDeclaration::semantic() %s\n", toChars()); //printf("ident: %s, %s, %p, %p\n", ident.toChars(), Id::dtor.toChars(), ident, Id::dtor); @@ -58,22 +58,22 @@ sc.pop(); } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - string kind() + override string kind() { assert(false); } - string toChars() + override string toChars() { return "~this"; } - bool isVirtual() + override bool isVirtual() { /* This should be FALSE so that dtor's don't get put into the vtbl[], * but doing so will require recompiling everything. @@ -85,25 +85,25 @@ } } - bool addPreInvariant() + override bool addPreInvariant() { return (isThis() && vthis && global.params.useInvariants); } - bool addPostInvariant() + override bool addPostInvariant() { return false; } - bool overloadInsert(Dsymbol s) + override bool overloadInsert(Dsymbol s) { assert(false); } - void emitComment(Scope sc) + override void emitComment(Scope sc) { assert(false); } - DtorDeclaration isDtorDeclaration() { return this; } -} \ No newline at end of file + override DtorDeclaration isDtorDeclaration() { return this; } +}