]> git.lyx.org Git - lyx.git/blobdiff - src/support/path.C
remove unused stuff
[lyx.git] / src / support / path.C
index b3e46221d6d1682b7f59dc90ae5b2330833053b1..fd8f358f91460fb0391402c81ffe28b59129230c 100644 (file)
@@ -13,8 +13,9 @@
 // Needed to prevent the definition of the unnamed_Path macro in the header file.
 #define PATH_C
 
-#include "path.h"
-#include "lyxlib.h"
+#include "support/path.h"
+#include "support/filename.h"
+#include "support/lyxlib.h"
 
 
 using std::string;
@@ -28,8 +29,10 @@ 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;
        }
@@ -50,7 +53,7 @@ int Path::pop()
                return 0;
        }
 
-       if (chdir(pushedDir_)) {
+       if (chdir(FileName(pushedDir_))) {
                // should throw an exception
                // throw DirChangeError();
        }