Mercurial > projects > ddmd
diff dmd/TypeInstance.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 | 5c9b78899f5d |
children | 3a0b150c9841 |
line wrap: on
line diff
--- a/dmd/TypeInstance.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/TypeInstance.d Sat Aug 28 16:19:48 2010 +0200 @@ -44,7 +44,7 @@ } } - Type syntaxCopy() + override Type syntaxCopy() { //printf("TypeInstance::syntaxCopy() %s, %d\n", toChars(), idents.dim); TypeInstance t; @@ -59,7 +59,7 @@ //void toDecoBuffer(OutBuffer *buf, int flag); - void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) + override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) { if (mod != this.mod) { toCBuffer3(buf, hgs, mod); @@ -69,7 +69,7 @@ toCBuffer2Helper(buf, hgs); } - void resolve(Loc loc, Scope sc, Expression* pe, Type* pt, Dsymbol* ps) + override void resolve(Loc loc, Scope sc, Expression* pe, Type* pt, Dsymbol* ps) { // Note close similarity to TypeIdentifier::resolve() Dsymbol s; @@ -96,7 +96,7 @@ //printf("pt = '%s'\n", (*pt)->toChars()); } - Type semantic(Loc loc, Scope sc) + override Type semantic(Loc loc, Scope sc) { Type t; Expression e; @@ -130,7 +130,7 @@ return t; } - Dsymbol toDsymbol(Scope sc) + override Dsymbol toDsymbol(Scope sc) { Type t; Expression e; @@ -160,7 +160,7 @@ return s; } - MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) + override MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) { static if (0) { printf("TypeInstance::deduceType()\n");