diff dwt/dwthelper/FileOutputStream.d @ 360:ee1dd551f5b1

Make compilable for tango 0.99.8
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Mar 2009 20:30:32 +0100
parents 8ebacc5c07dc
children
line wrap: on
line diff
--- a/dwt/dwthelper/FileOutputStream.d	Tue Jan 27 10:15:27 2009 +0100
+++ b/dwt/dwthelper/FileOutputStream.d	Fri Mar 20 20:30:32 2009 +0100
@@ -9,33 +9,23 @@
 import dwt.dwthelper.utils;
 
 version(TANGOSVN){
-import tango.io.device.File;
+import TangoFile = tango.io.device.File;
 } else {
-import tango.io.FileConduit;
+import TangoFile = tango.io.FileConduit;
 }
 
 public class FileOutputStream : dwt.dwthelper.OutputStream.OutputStream {
 
     alias dwt.dwthelper.OutputStream.OutputStream.write write;
     alias dwt.dwthelper.OutputStream.OutputStream.close close;
-    
-    version(TANGOSVN)
-        tango.io.device.File.File fc;
-    else
-        FileConduit fc;
+    TangoFile.File fc;
     
     public this ( String name ){
-        version(TANGOSVN)
-            fc = new tango.io.device.File.File( name, tango.io.device.File.File.WriteCreate );
-        else
-            fc = new FileConduit( name, FileConduit.WriteCreate );
+        fc = new TangoFile.File( name, TangoFile.File.WriteCreate );
     }
 
     public this ( String name, bool append ){
-        version(TANGOSVN)
-            fc = new tango.io.device.File.File( name, append ? tango.io.device.File.File.WriteAppending : tango.io.device.File.File.WriteCreate );
-        else    
-            fc = new FileConduit( name, append ? FileConduit.WriteAppending : FileConduit.WriteCreate );
+        fc = new TangoFile.File( name, append ? TangoFile.File.WriteAppending : TangoFile.File.WriteCreate );
     }
 
     public this ( dwt.dwthelper.File.File file ){