Mercurial > projects > ddmd
diff dmd/StructInitializer.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 | f708f0452e81 |
children | 43073c7c7769 |
line wrap: on
line diff
--- a/dmd/StructInitializer.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/StructInitializer.d Sat Aug 28 16:19:48 2010 +0200 @@ -49,7 +49,7 @@ vars = new Array(); } - Initializer syntaxCopy() + override Initializer syntaxCopy() { StructInitializer ai = new StructInitializer(loc); @@ -75,7 +75,7 @@ this.value.push(cast(void*)value); } - Initializer semantic(Scope sc, Type t) + override Initializer semantic(Scope sc, Type t) { TypeStruct ts; int errors = 0; @@ -179,7 +179,7 @@ * a struct literal. In the future, the two should be the * same thing. */ - Expression toExpression() + override Expression toExpression() { Expression e; @@ -214,12 +214,12 @@ return null; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - dt_t* toDt() + override dt_t* toDt() { scope Array dts = new Array(); uint i; @@ -339,5 +339,5 @@ return dt; } - StructInitializer isStructInitializer() { return this; } -} \ No newline at end of file + override StructInitializer isStructInitializer() { return this; } +}