Mercurial > projects > dwt-addons
diff dwtx/core/commands/Command.d @ 39:644f1334b451
fix anon classes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 08 Apr 2008 22:05:42 +0200 |
parents | 6518c18a01f7 |
children | ea8ff534f622 |
line wrap: on
line diff
--- a/dwtx/core/commands/Command.d Sun Apr 06 14:15:58 2008 +0200 +++ b/dwtx/core/commands/Command.d Tue Apr 08 22:05:42 2008 +0200 @@ -537,9 +537,9 @@ Object[] listeners = getListeners(); for (int i = 0; i < listeners.length; i++) { ICommandListener listener = cast(ICommandListener) listeners[i]; - SafeRunner.run(new class() ISafeRunnable { + SafeRunner.run(new class(listener) ISafeRunnable { ICommandListener listener_; - this(){ this.listener_ = listener; } + this(ICommandListener a){ this.listener_ = a; } public void handleException(Exception exception) { }