Mercurial > projects > dwt-mac
diff dwt/dnd/ImageTransfer.d @ 8:a9ab4c738ed8
Fix: instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:32:39 +0200 |
parents | e831403a80a9 |
children | d8635bb48c7c |
line wrap: on
line diff
--- a/dwt/dnd/ImageTransfer.d Wed Aug 27 14:30:35 2008 +0200 +++ b/dwt/dnd/ImageTransfer.d Wed Aug 27 14:32:39 2008 +0200 @@ -200,7 +200,7 @@ } bool checkImage(Object object) { - if (object is null || !(object instanceof ImageData)) return false; + if (object is null || !( null !is cast(ImageData)object )) return false; return true; }