]> git.lyx.org Git - lyx.git/blobdiff - src/support/path.C
remove unused stuff
[lyx.git] / src / support / path.C
index 3290274686653992a08a34f86ba06f36c5ea92ae..fd8f358f91460fb0391402c81ffe28b59129230c 100644 (file)
@@ -14,6 +14,7 @@
 #define PATH_C
 
 #include "support/path.h"
+#include "support/filename.h"
 #include "support/lyxlib.h"
 
 
@@ -28,10 +29,10 @@ Path::Path(string const & path)
 {
        if (!path.empty()) {
                pushedDir_ = getcwd();
-#if 0
-               if (pushedDir_.empty() || chdir(path))
-                       /* FIXME: throw */;
-#endif
+
+               if (pushedDir_.empty() || chdir(FileName(path))) {
+                       /* FIXME: throw */
+               }
        } else {
                popped_ = true;
        }
@@ -52,7 +53,7 @@ int Path::pop()
                return 0;
        }
 
-       if (chdir(pushedDir_)) {
+       if (chdir(FileName(pushedDir_))) {
                // should throw an exception
                // throw DirChangeError();
        }