]> git.lyx.org Git - lyx.git/blobdiff - src/support/path.h
fix typo that put too many include paths for most people
[lyx.git] / src / support / path.h
index 893b4bdc7176d5fc0b7a319b95ca582aa32e5aeb..7059b1a285d325c9def93a6388612889e6dd3582 100644 (file)
@@ -3,30 +3,30 @@
 #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
 #endif
 
 ///
-class Path : public noncopyable {
+class Path : boost::noncopyable {
 public:
        ///
        explicit
        Path(string const & path)
                : popped_(false)
        {
-               if (!path.empty()) { 
-                       pushedDir_ = GetCWD();
+               if (!path.empty()) {
+                       pushedDir_ = lyx::getcwd(); // GetCWD();
                        if (pushedDir_.empty() || lyx::chdir(path)) {
                                // should throw an exception
                                // throw DirChangeError();
-                               // The use of WriteFSAlert makes this
+                               // The use of Alert::err_alert makes this
                                // impossible to inline.
-                               //WriteFSAlert(_("Error: Could not change to directory: "), 
+                               //Alert::err_alert(_("Error: Could not change to directory: "),
                                //           path);
                        }
                } else {