diff dwtx/text/edits/MoveSourceEdit.d @ 130:b56e9be9fe88

ctors to this
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 00:30:47 +0200
parents eb30df5ca28b
children c4fb132a086c
line wrap: on
line diff
--- a/dwtx/text/edits/MoveSourceEdit.d	Sat Aug 23 19:10:48 2008 +0200
+++ b/dwtx/text/edits/MoveSourceEdit.d	Sun Aug 24 00:30:47 2008 +0200
@@ -59,7 +59,7 @@
      * @param offset the edit's offset
      * @param length the edit's length
      */
-    public MoveSourceEdit(int offset, int length) {
+    public this(int offset, int length) {
         super(offset, length);
     }
 
@@ -70,7 +70,7 @@
      * @param length the edit's length
      * @param target the edit's target
      */
-    public MoveSourceEdit(int offset, int length, MoveTargetEdit target) {
+    public this(int offset, int length, MoveTargetEdit target) {
         this(offset, length);
         setTargetEdit(target);
     }
@@ -78,7 +78,7 @@
     /*
      * Copy constructor
      */
-    private MoveSourceEdit(MoveSourceEdit other) {
+    private this(MoveSourceEdit other) {
         super(other);
         if (other.fModifier !is null)
             fModifier= other.fModifier.copy();
@@ -90,7 +90,7 @@
      *
      * @return the target edit or <code>null</code>
      */
-    public MoveTargetEdit getTargetEdit() {
+    public this getTargetEdit() {
         return fTarget;
     }
 
@@ -378,7 +378,7 @@
         int end2= offset2 + length2 - 1;
         if (end2 < offset1)
             return null;
-        
+
         int end= Math.min(end1, end2);
         if (offset1 < offset2) {
             return new Region(offset2, end - offset2 + 1);