Mercurial > projects > ddmd
diff dmd/ErrorExp.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 | ef02e2e203c2 |
line wrap: on
line diff
--- a/dmd/ErrorExp.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/ErrorExp.d Sat Aug 28 16:19:48 2010 +0200 @@ -1,15 +1,15 @@ -module dmd.ErrorExp; - -import dmd.OutBuffer; -import dmd.IntegerExp; -import dmd.Loc; +module dmd.ErrorExp; + +import dmd.OutBuffer; +import dmd.IntegerExp; +import dmd.Loc; import dmd.HdrGenState; -import dmd.Type; +import dmd.Type; /* Use this expression for error recovery. * It should behave as a 'sink' to prevent further cascaded error messages. */ - + class ErrorExp : IntegerExp { this() @@ -17,7 +17,7 @@ super(Loc(0), 0, Type.terror); } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring("__error"); }