]> git.lyx.org Git - lyx.git/blobdiff - src/support/path.h
lyx-devel.diff
[lyx.git] / src / support / path.h
index d2480670c3b5eebe6ffe93e83cc5c35dcdecffd0..9e8f67ba8e10c83ab21b587313724c8fc49541fd 100644 (file)
@@ -3,9 +3,9 @@
 #define PATH_H
 
 #include "LString.h"
-#include "filetools.h"
+//#include "filetools.h"
 #include "lyxlib.h"
-#include "utility.hpp"
+#include <boost/utility.hpp>
 
 #ifdef __GNUG__
 #pragma interface
@@ -20,8 +20,8 @@ public:
                : popped_(false)
        {
                if (!path.empty()) { 
-                       pushedDir_ = GetCWD();
-                       if (pushedDir_.empty() || lyx::chdir(path.c_str())) {
+                       pushedDir_ = lyx::getcwd(); // GetCWD();
+                       if (pushedDir_.empty() || lyx::chdir(path)) {
                                // should throw an exception
                                // throw DirChangeError();
                                // The use of WriteFSAlert makes this