Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/EventTable.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | f713da8bc051 |
children |
comparison
equal
deleted
inserted
replaced
48:ddbfe84d86df | 49:7a2dd761a8b2 |
---|---|
31 | 31 |
32 class EventTable { | 32 class EventTable { |
33 int [] types; | 33 int [] types; |
34 Listener [] listeners; | 34 Listener [] listeners; |
35 int level; | 35 int level; |
36 static final int GROW_SIZE = 4; | 36 static const int GROW_SIZE = 4; |
37 | 37 |
38 public Listener [] getListeners (int eventType) { | 38 public Listener [] getListeners (int eventType) { |
39 if (types is null) return new Listener [0]; | 39 if (types is null) return new Listener [0]; |
40 int count = 0; | 40 int count = 0; |
41 for (int i=0; i<types.length; i++) { | 41 for (int i=0; i<types.length; i++) { |