diff dwt/custom/StyledText.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 b903c16b6f48
line wrap: on
line diff
--- a/dwt/custom/StyledText.d	Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/custom/StyledText.d	Wed Aug 27 14:02:31 2008 +0200
@@ -205,7 +205,7 @@
      * @param printer printer device to print on.
      * @param printOptions print options
      */     
-    Printing(StyledText styledText, Printer printer, StyledTextPrintOptions printOptions) {
+    this(StyledText styledText, Printer printer, StyledTextPrintOptions printOptions) {
         this.printer = printer;
         this.printOptions = printOptions;
         this.mirrored = (styledText.getStyle() & DWT.MIRRORED) !is 0;
@@ -676,7 +676,7 @@
      *  beginning of document
      * @param length length of content to write
      */
-    public RTFWriter(int start, int length) {
+    public this(int start, int length) {
         super(start, length);
         colorTable = new Vector();
         fontTable = new Vector();
@@ -1054,7 +1054,7 @@
      * @param start start offset of content to write, 0 based from beginning of document
      * @param length length of content to write
      */
-    public TextWriter(int start, int length) {
+    public this(int start, int length) {
         buffer = new StringBuffer(length);
         startOffset = start;
         endOffset = start + length;
@@ -1210,7 +1210,7 @@
  * @see DWT#WRAP
  * @see #getStyle
  */
-public StyledText(Composite parent, int style) {
+public this(Composite parent, int style) {
     super(parent, checkStyle(style));
     // set the fg in the OS to ensure that these are the same as StyledText, necessary
     // for ensuring that the bg/fg the IME box uses is the same as what StyledText uses