Mercurial > projects > dwt-win
changeset 336:f866e80af235
Remove tango deprecation warnings.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Feb 2009 19:26:35 +0100 |
parents | 47b37f126740 |
children | 9041f892283b |
files | dwt/dwthelper/ByteArrayOutputStream.d dwt/dwthelper/FileInputStream.d dwt/dwthelper/ResourceBundle.d dwt/dwthelper/utils.d dwt/internal/win32/OS.d |
diffstat | 5 files changed, 8 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/dwthelper/ByteArrayOutputStream.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/ByteArrayOutputStream.d Wed Feb 18 19:26:35 2009 +0100 @@ -5,18 +5,18 @@ public import dwt.dwthelper.OutputStream; import dwt.dwthelper.utils; -import tango.io.Buffer; +import tango.io.device.Array; public class ByteArrayOutputStream : dwt.dwthelper.OutputStream.OutputStream { - protected GrowBuffer buffer; + protected Array buffer; public this (){ - buffer = new GrowBuffer(); + buffer = new Array(); } public this ( int par_size ){ - buffer = new GrowBuffer(par_size); + buffer = new Array(par_size); } public synchronized override void write( int b ){
--- a/dwt/dwthelper/FileInputStream.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/FileInputStream.d Wed Feb 18 19:26:35 2009 +0100 @@ -12,7 +12,6 @@ } else { import TangoFile = tango.io.FileConduit; } -import tango.io.protocol.Reader; import tango.core.Exception; import tango.text.convert.Format;
--- a/dwt/dwthelper/ResourceBundle.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/ResourceBundle.d Wed Feb 18 19:26:35 2009 +0100 @@ -8,7 +8,7 @@ import dwt.DWT; import dwt.dwthelper.utils; -import tango.io.File; +import tango.io.device.File; import tango.text.locale.Core; class ResourceBundle { @@ -168,8 +168,7 @@ } public static ResourceBundle getBundle( String name ){ try{ - scope f = new File(name); - return new ResourceBundle( cast(String) f.read() ); + return new ResourceBundle( cast(String) File.get(name) ); } catch( IOException e){ e.msg ~= " file:" ~ name;
--- a/dwt/dwthelper/utils.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/dwthelper/utils.d Wed Feb 18 19:26:35 2009 +0100 @@ -10,7 +10,7 @@ public import tango.core.Exception : IllegalArgumentException, IOException; import tango.io.Stdout; -import tango.io.Print; +import tango.io.stream.Format; static import tango.stdc.stringz; static import tango.text.Util; static import tango.text.Text;
--- a/dwt/internal/win32/OS.d Wed Feb 18 17:10:51 2009 +0100 +++ b/dwt/internal/win32/OS.d Wed Feb 18 19:26:35 2009 +0100 @@ -35,8 +35,7 @@ import tango.stdc.string : memset, strlen; import tango.stdc.stringz : toString16z; import tango.text.convert.Utf : toString16; -static import tango.io.TempFile; -import tango.io.File; +//import tango.io.device.File; import tango.io.Console;