Mercurial > projects > dwt-mac
diff dwt/program/Program.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 1a8b3cb347e0 |
children | a9ab4c738ed8 |
line wrap: on
line diff
--- a/dwt/program/Program.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/program/Program.d Wed Aug 27 14:30:35 2008 +0200 @@ -335,7 +335,7 @@ // Program[] programs = new Program[bundles.size()]; // Enumeration values = bundles.elements(); // while (values.hasMoreElements()) { -// programs[count++] = (Program)values.nextElement(); +// programs[count++] = cast(Program)values.nextElement(); // } // return programs; } @@ -518,7 +518,7 @@ public bool equals(Object other) { if (this is other) return true; if (other instanceof Program) { - final Program program = (Program) other; + final Program program = cast(Program) other; return name.equals(program.name); } return false;