Mercurial > projects > dwt-addons
comparison dwtx/jface/text/TextAttribute.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 51e6e63f930e |
children | 000f9136b8f7 |
comparison
equal
deleted
inserted
replaced
137:25170b5a8951 | 138:b6bad70d540a |
---|---|
251 public bool equals(Object object) { | 251 public bool equals(Object object) { |
252 | 252 |
253 if (object is this) | 253 if (object is this) |
254 return true; | 254 return true; |
255 | 255 |
256 if (!(object instanceof TextAttribute)) | 256 if (!( cast(TextAttribute)object )) |
257 return false; | 257 return false; |
258 TextAttribute a= cast(TextAttribute)object; | 258 TextAttribute a= cast(TextAttribute)object; |
259 | 259 |
260 return (a.style is style && equals(a.foreground, foreground) && equals(a.background, background) && equals(a.font, font)); | 260 return (a.style is style && equals(a.foreground, foreground) && equals(a.background, background) && equals(a.font, font)); |
261 } | 261 } |