Mercurial > projects > dwt-addons
diff fixmodule.d @ 197:0ea0c9f9008f
Remove tango deprecation warnings.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Feb 2009 19:35:22 +0100 |
parents | 07f3bab17e54 |
children |
line wrap: on
line diff
--- a/fixmodule.d Tue Feb 10 17:12:01 2009 +0100 +++ b/fixmodule.d Wed Feb 18 19:35:22 2009 +0100 @@ -1,7 +1,7 @@ module packageimport; import tango.io.FilePath; -import tango.io.File; +import tango.io.device.File; import tango.io.Buffer; import tango.io.stream.FileStream; import tango.io.stream.TextFileStream; @@ -28,7 +28,7 @@ // foreach module foreach( mod; mods ){ auto filename = Format("{}/{}", dir, mod ); - auto cont = cast(char[])File( filename ).read; + auto cont = cast(char[])File.get( filename ); char[][] lines = cont.splitLines(); int modLine = -1; foreach( uint idx, char[] line; lines ){