diff mde/file/ssi.d @ 114:b16a534f5302

Changes for tango r4201. Added override keyword in a lot of places.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 19 Dec 2008 15:15:06 +0000
parents ac1e3fd07275
children
line wrap: on
line diff
--- a/mde/file/ssi.d	Fri Dec 19 10:32:28 2008 +0000
+++ b/mde/file/ssi.d	Fri Dec 19 15:15:06 2008 +0000
@@ -28,7 +28,7 @@
 S read(S) (FilePath path) {
     char[] buf;
     try {
-        scope file = new UnicodeFile!(char) (path, Encoding.Unknown);   // from BOM or use UTF-8
+        scope file = new UnicodeFile!(char) (path.toString, Encoding.Unknown);   // from BOM or use UTF-8
         buf = cast(char[]) file.read;
     } catch (Exception e) {
         throw new ioException ("While reading \""~path.toString~"\": "~e.msg);
@@ -47,7 +47,7 @@
 
 void write(S) (FilePath path, S content) {
     try {
-        scope file = new UnicodeFile!(char) (path, Encoding.UTF_8N);
+        scope file = new UnicodeFile!(char) (path.toString, Encoding.UTF_8N);
         file.write ("mdessi00\n"~serialize(content), true);
     } catch (Exception e) {
         throw new ioException ("Unable to write file "~path.toString~": "~e.msg);