Mercurial > projects > dwt-mac
diff dwt/graphics/FontData.d @ 5:1a8b3cb347e0
Fix Ctors to 'this'
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:02:31 +0200 |
parents | 380af2bdd8e5 |
children | e831403a80a9 |
line wrap: on
line diff
--- a/dwt/graphics/FontData.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/FontData.d Wed Aug 27 14:02:31 2008 +0200 @@ -96,7 +96,7 @@ /** * Constructs a new uninitialized font data. */ -public FontData () { +public this () { this("", 12, DWT.NORMAL); } @@ -119,7 +119,7 @@ * * @see #toString */ -public FontData(String string) { +public this(String string) { if (string is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); int start = 0; int end = string.indexOf('|'); @@ -190,7 +190,7 @@ * <li>ERROR_INVALID_ARGUMENT - if the height is negative</li> * </ul> */ -public FontData(String name, int height, int style) { +public this(String name, int height, int style) { setName(name); setHeight(height); setStyle(style);