Mercurial > projects > dwt-mac
comparison dwt/custom/ScrolledComposite.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 1a8b3cb347e0 |
children | a9ab4c738ed8 |
comparison
equal
deleted
inserted
replaced
6:b903c16b6f48 | 7:e831403a80a9 |
---|---|
169 }; | 169 }; |
170 | 170 |
171 filter = new Listener() { | 171 filter = new Listener() { |
172 public void handleEvent(Event event) { | 172 public void handleEvent(Event event) { |
173 if (event.widget instanceof Control) { | 173 if (event.widget instanceof Control) { |
174 Control control = (Control) event.widget; | 174 Control control = cast(Control) event.widget; |
175 if (contains(control)) showControl(control); | 175 if (contains(control)) showControl(control); |
176 } | 176 } |
177 } | 177 } |
178 }; | 178 }; |
179 | 179 |