Mercurial > projects > ddmd
diff dmd/InterfaceDeclaration.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 | ad4792a1cfd6 |
line wrap: on
line diff
--- a/dmd/InterfaceDeclaration.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/InterfaceDeclaration.d Sat Aug 28 16:19:48 2010 +0200 @@ -47,12 +47,12 @@ } } - Dsymbol syntaxCopy(Dsymbol s) + override Dsymbol syntaxCopy(Dsymbol s) { assert(false); } - void semantic(Scope sc) + override void semantic(Scope sc) { int i; @@ -252,7 +252,7 @@ //printf("-InterfaceDeclaration.semantic(%s), type = %p\n", toChars(), type); } - bool isBaseOf(ClassDeclaration cd, int* poffset) + override bool isBaseOf(ClassDeclaration cd, int* poffset) { uint j; @@ -319,7 +319,7 @@ return 0; } - string kind() + override string kind() { assert(false); } @@ -330,7 +330,7 @@ * For COM interfaces, no. * For non-COM interfaces, yes, this is where the Interface ptr goes. */ - int vtblOffset() + override int vtblOffset() { if (isCOMinterface() || isCPPinterface()) return 0; @@ -338,17 +338,17 @@ } version (DMDV2) { - bool isCPPinterface() + override bool isCPPinterface() { return cpp; } } - bool isCOMinterface() + override bool isCOMinterface() { return com; } - void toObjFile(int multiobj) // compile to .obj file + override void toObjFile(int multiobj) // compile to .obj file { uint i; uint offset; @@ -514,7 +514,7 @@ /************************************* * Create the "InterfaceInfo" symbol */ - Symbol* toSymbol() + override Symbol* toSymbol() { if (!csym) { @@ -532,5 +532,5 @@ return csym; } - InterfaceDeclaration isInterfaceDeclaration() { return this; } + override InterfaceDeclaration isInterfaceDeclaration() { return this; } }