diff dwtx/jface/text/CopyOnWriteTextStore.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 75302ef3f92f
children
line wrap: on
line diff
--- a/dwtx/jface/text/CopyOnWriteTextStore.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/CopyOnWriteTextStore.d	Mon Sep 08 00:51:37 2008 +0200
@@ -61,7 +61,6 @@
 import dwtx.jface.text.IDocumentExtension4; // packageimport
 import dwtx.jface.text.IDocumentExtension2; // packageimport
 import dwtx.jface.text.IDocumentPartitionerExtension2; // packageimport
-import dwtx.jface.text.Assert; // packageimport
 import dwtx.jface.text.DefaultInformationControl; // packageimport
 import dwtx.jface.text.IWidgetTokenOwnerExtension; // packageimport
 import dwtx.jface.text.DocumentClone; // packageimport
@@ -188,7 +187,7 @@
          * Create an empty text store.
          */
         private this() {
-            super();
+//             super();
         }
 
         /**
@@ -196,7 +195,7 @@
          * @param text  the initial content
          */
         private this(String text) {
-            super();
+//             super();
             set(text);
         }
 
@@ -239,7 +238,7 @@
     }
 
     /** The underlying "real" text store */
-    protected ITextStore fTextStore= new StringTextStore();
+    protected ITextStore fTextStore;
 
     /** A modifiable <code>ITextStore</code> instance */
     private const ITextStore fModifiableTextStore;
@@ -247,13 +246,14 @@
     /**
      * Creates an empty text store. The given text store will be used upon first
      * modification attempt.
-     * 
+     *
      * @param modifiableTextStore
      *            a modifiable <code>ITextStore</code> instance, may not be
      *            <code>null</code>
      */
     public this(ITextStore modifiableTextStore) {
-        Assert.isNotNull(modifiableTextStore);
+        Assert.isNotNull(cast(Object)modifiableTextStore);
+        fTextStore= new StringTextStore();
         fTextStore= new StringTextStore();
         fModifiableTextStore= modifiableTextStore;
     }