Mercurial > projects > dwt-addons
diff dwtx/jface/text/AbstractReusableInformationControlCreator.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | c4fb132a086c |
children | b6bad70d540a |
line wrap: on
line diff
--- a/dwtx/jface/text/AbstractReusableInformationControlCreator.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/text/AbstractReusableInformationControlCreator.d Sun Aug 24 01:46:20 2008 +0200 @@ -186,7 +186,7 @@ * @see dwtx.jface.text.IInformationControlCreator#createInformationControl(dwt.widgets.Shell) */ public IInformationControl createInformationControl(Shell parent) { - IInformationControl control= (IInformationControl)fInformationControls.get(parent); + IInformationControl control= cast(IInformationControl)fInformationControls.get(parent); if (control is null) { control= doCreateInformationControl(parent); control.addDisposeListener(this); @@ -201,7 +201,7 @@ public void widgetDisposed(DisposeEvent e) { Composite parent= null; if (e.widget instanceof Shell) - parent= ((Shell)e.widget).getParent(); + parent= (cast(Shell)e.widget).getParent(); if (parent instanceof Shell) fInformationControls.remove(parent); }