Mercurial > projects > ddmd
diff dmd/CaseRangeStatement.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 | 4290d870944a |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/CaseRangeStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/CaseRangeStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -29,12 +29,12 @@ this.statement = s; } - Statement syntaxCopy() + override Statement syntaxCopy() { assert(false); } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { SwitchStatement sw = sc.sw; @@ -83,7 +83,7 @@ return s; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring("case "); first.toCBuffer(buf, hgs); @@ -92,4 +92,4 @@ buf.writenl(); statement.toCBuffer(buf, hgs); } -} \ No newline at end of file +}