Mercurial > projects > dwt-mac
diff dwt/custom/TableEditor.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 | 6337764516f1 |
line wrap: on
line diff
--- a/dwt/custom/TableEditor.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/custom/TableEditor.d Wed Aug 27 14:30:35 2008 +0200 @@ -51,7 +51,7 @@ * if (oldEditor !is null) oldEditor.dispose(); * * // Identify the selected row -* TableItem item = (TableItem)e.item; +* TableItem item = cast(TableItem)e.item; * if (item is null) return; * * // The control that will be the editor must be a child of the Table @@ -59,7 +59,7 @@ * newEditor.setText(item.getText(EDITABLECOLUMN)); * newEditor.addModifyListener(new ModifyListener() { * public void modifyText(ModifyEvent e) { -* Text text = (Text)editor.getEditor(); +* Text text = cast(Text)editor.getEditor(); * editor.getItem().setText(EDITABLECOLUMN, text.getText()); * } * });