Mercurial > projects > dwt-win
diff dwt/widgets/Display.d @ 239:43b41c7fe84a
work on allow null strings and arrays
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 20 Jun 2008 16:27:36 +0200 |
parents | e2affbeb686d |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/widgets/Display.d Fri Jun 20 01:29:54 2008 +0200 +++ b/dwt/widgets/Display.d Fri Jun 20 16:27:36 2008 +0200 @@ -1626,9 +1626,6 @@ * @param key the name of the property * @return the value of the property or null if it has not been set * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the key is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> @@ -1639,7 +1636,8 @@ */ public Object getData (String key) { checkDevice (); - if (key is null) error (DWT.ERROR_NULL_ARGUMENT); + // DWT extension: allow null string + //if (key is null) error (DWT.ERROR_NULL_ARGUMENT); if (key ==/*eq*/RUN_MESSAGES_IN_IDLE_KEY) { return new ValueWrapperBool(runMessagesInIdle); } @@ -4081,9 +4079,6 @@ * @param key the name of the property * @param value the new value for the property * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the key is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> @@ -4094,7 +4089,8 @@ */ public void setData (String key, Object value) { checkDevice (); - if (key is null) error (DWT.ERROR_NULL_ARGUMENT); + // DWT extension: allow null string + //if (key is null) error (DWT.ERROR_NULL_ARGUMENT); if (key ==/*eq*/RUN_MESSAGES_IN_IDLE_KEY) { auto data = cast(ValueWrapperBool) value;