Mercurial > projects > dwt-linux
diff dwt/widgets/Tree.d @ 255:5a30aa9820f3
removed tango.stdc.stringz imports and allow null for arrays and string arguments.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 15 Jun 2008 22:32:20 +0200 |
parents | ce446666f5a2 |
children | c0d810de7093 |
line wrap: on
line diff
--- a/dwt/widgets/Tree.d Sun Jun 08 15:11:48 2008 +0200 +++ b/dwt/widgets/Tree.d Sun Jun 15 22:32:20 2008 +0200 @@ -2820,7 +2820,6 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the item order is null</li> * <li>ERROR_INVALID_ARGUMENT - if the item order is not the same length as the number of items</li> * </ul> * @@ -2833,7 +2832,8 @@ */ public void setColumnOrder (int [] order) { checkWidget (); - if (order is null) error (DWT.ERROR_NULL_ARGUMENT); + // DWT extension: allow null for zero length string + //if (order is null) error (DWT.ERROR_NULL_ARGUMENT); if (columnCount is 0) { if (order.length > 0) error (DWT.ERROR_INVALID_ARGUMENT); return; @@ -2973,7 +2973,6 @@ * @param items the array of items * * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the array of items is null</li> * <li>ERROR_INVALID_ARGUMENT - if one of the items has been disposed</li> * </ul> * @exception DWTException <ul> @@ -2985,7 +2984,8 @@ */ public void setSelection (TreeItem [] items) { checkWidget (); - if (items is null) error (DWT.ERROR_NULL_ARGUMENT); + // DWT extension: allow null for zero length string + //if (items is null) error (DWT.ERROR_NULL_ARGUMENT); deselectAll (); int length = items.length; if (length is 0 || ((style & DWT.SINGLE) !is 0 && length > 1)) return;