Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/VisualAnnotationModel.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | 02cd5f1224d3 |
line wrap: on
line diff
--- a/dwtx/jface/text/source/VisualAnnotationModel.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/text/source/VisualAnnotationModel.d Sun Aug 24 01:46:20 2008 +0200 @@ -176,7 +176,7 @@ */ public Position getPosition(Annotation annotation) { - Position p= (Position) getAnnotationMap().get(annotation); + Position p= cast(Position) getAnnotationMap().get(annotation); if (p !is null) return p; @@ -193,7 +193,7 @@ if (model is fModel) { Iterator iter= new ArrayList(fAnnotationModelListeners).iterator(); while (iter.hasNext()) { - IAnnotationModelListener l= (IAnnotationModelListener)iter.next(); + IAnnotationModelListener l= cast(IAnnotationModelListener)iter.next(); l.modelChanged(this); } }