#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 {