Mercurial > projects > dwt-addons
changeset 144:16a71f577815
instanceof after ||
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 21:34:15 +0200 |
parents | 53b889547456 |
children | 02cd5f1224d3 |
files | dwtx/jface/internal/text/html/BrowserInformationControl.d dwtx/jface/text/source/AnnotationPainter.d |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dwtx/jface/internal/text/html/BrowserInformationControl.d Sun Aug 24 21:32:37 2008 +0200 +++ b/dwtx/jface/internal/text/html/BrowserInformationControl.d Sun Aug 24 21:34:15 2008 +0200 @@ -272,7 +272,7 @@ * {@link BrowserInformationControlInput}. */ public void setInput(Object input) { - Assert.isLegal(input is null || input instanceof String || input instanceof BrowserInformationControlInput); + Assert.isLegal(input is null || cast(String)input || input instanceof BrowserInformationControlInput); if ( cast(String)input ) { setInformation(cast(String)input);
--- a/dwtx/jface/text/source/AnnotationPainter.d Sun Aug 24 21:32:37 2008 +0200 +++ b/dwtx/jface/text/source/AnnotationPainter.d Sun Aug 24 21:34:15 2008 +0200 @@ -896,7 +896,7 @@ String type= annotation.getType(); Object paintingStrategy= getPaintingStrategy(type); - if (paintingStrategy is null || paintingStrategy instanceof NullStrategy) + if (paintingStrategy is null || cast(NullStrategy)paintingStrategy ) return null; Color color= getColor(type);