diff dwt/graphics/Color.d @ 5:1a8b3cb347e0

Fix Ctors to 'this'
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:02:31 +0200
parents 649b8e223d5a
children e831403a80a9
line wrap: on
line diff
--- a/dwt/graphics/Color.d	Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/graphics/Color.d	Wed Aug 27 14:02:31 2008 +0200
@@ -43,7 +43,7 @@
      */
     public float[] handle;
 
-Color(Device device) {
+this(Device device) {
     super(device);
 }
 
@@ -71,7 +71,7 @@
  *
  * @see #dispose
  */
-public Color(Device device, int red, int green, int blue) {
+public this(Device device, int red, int green, int blue) {
     super(device);
     init(red, green, blue);
     init();
@@ -99,7 +99,7 @@
  *
  * @see #dispose
  */
-public Color(Device device, RGB rgb) {
+public this(Device device, RGB rgb) {
     super(device);
     if (rgb is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     init(rgb.red, rgb.green, rgb.blue);