diff jface/ShowFieldPrefs.d @ 130:5c1906bfc206 Release-1

Fix deprecated tango API
author Frank Benoit <benoit@tionex.de>
date Sat, 26 Jul 2008 14:35:04 +0200
parents caaf053c44d6
children
line wrap: on
line diff
--- a/jface/ShowFieldPrefs.d	Sat Jul 26 02:47:41 2008 +0200
+++ b/jface/ShowFieldPrefs.d	Sat Jul 26 14:35:04 2008 +0200
@@ -34,7 +34,7 @@
 import dwt.dwthelper.utils;
 
 import tango.io.File;
-import tango.io.FilePath;
+import Path = tango.io.Path;
 
 version(JIVE) import jive.stacktrace;
 
@@ -183,9 +183,8 @@
 
 
 void main(){
-    scope fn = new FilePath( FILENAME );
-    if( !fn.exists ){
-        scope prefs = new File( fn );
+    if( !Path.exists( FILENAME ) ){
+        scope prefs = new File( FILENAME );
         version(linux){
             prefs.write( import("jface.showfieldprefs.properties.linux" ));
         }