comparison 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
comparison
equal deleted inserted replaced
7:e831403a80a9 8:a9ab4c738ed8
198 protected String[] getTypeNames() { 198 protected String[] getTypeNames() {
199 return new String[] { PICT }; 199 return new String[] { PICT };
200 } 200 }
201 201
202 bool checkImage(Object object) { 202 bool checkImage(Object object) {
203 if (object is null || !(object instanceof ImageData)) return false; 203 if (object is null || !( null !is cast(ImageData)object )) return false;
204 return true; 204 return true;
205 } 205 }
206 206
207 protected bool validate(Object object) { 207 protected bool validate(Object object) {
208 return checkImage(object); 208 return checkImage(object);