Mercurial > projects > dwt-mac
diff dwt/custom/TableTreeEditor.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/TableTreeEditor.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/custom/TableTreeEditor.d Wed Aug 27 14:30:35 2008 +0200 @@ -58,7 +58,7 @@ * if (oldEditor !is null) oldEditor.dispose(); * * // Identify the selected row -* TableTreeItem item = (TableTreeItem)e.item; +* TableTreeItem item = cast(TableTreeItem)e.item; * if (item is null) return; * * // The control that will be the editor must be a child of the Table @@ -66,7 +66,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()); * } * });