diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/DefaultContent.d @ 49:7a2dd761a8b2

more work until dmd 2.026 linux segfaults.
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 12:59:54 +0100
parents ddbfe84d86df
children d5075f5226e5
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/DefaultContent.d	Fri Mar 27 12:05:20 2009 +0100
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/DefaultContent.d	Fri Mar 27 12:59:54 2009 +0100
@@ -24,13 +24,17 @@
 import java.lang.all;
 
 version(Tango){
-static import tango.io.model.IFile;
+    static import tango.io.model.IFile;
 } else { // Phobos
 }
 
 
 class DefaultContent : StyledTextContent {
-    private final static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString;
+    version(Tango){
+        private const static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString;
+    } else { // Phobos
+        private const static String LineDelimiter = std.string.newline;
+    }
 
     StyledTextListener[] textListeners; // stores text listeners for event sending
     char[] textStore; // stores the actual text