diff dwt/graphics/PaletteData.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 965ac0a77267
line wrap: on
line diff
--- a/dwt/graphics/PaletteData.d	Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/graphics/PaletteData.d	Wed Aug 27 14:02:31 2008 +0200
@@ -107,7 +107,7 @@
  *    <li>ERROR_NULL_ARGUMENT - if the argument is null</li>
  * </ul>
  */
-public PaletteData(RGB[] colors) {
+public this(RGB[] colors) {
     if (colors is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     this.colors = colors;
     this.isDirect = false;
@@ -120,7 +120,7 @@
  * @param greenMask the green mask
  * @param blueMask the blue mask
  */
-public PaletteData(int redMask, int greenMask, int blueMask) {
+public this(int redMask, int greenMask, int blueMask) {
     this.redMask = redMask;
     this.greenMask = greenMask;
     this.blueMask = blueMask;