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