]> git.lyx.org Git - lyx.git/blobdiff - src/support/Path.cpp
abdel likes short code
[lyx.git] / src / support / Path.cpp
index fbf48d8d1371568e5a8d019d48a5ff1d24bdc391..3bdf22ed0f11deb68a234738684e728b3226038b 100644 (file)
@@ -11,7 +11,6 @@
 #include <config.h>
 
 #include "support/Path.h"
-#include "support/lyxlib.h"
 
 // undef PathChanger macro when building PathChanger
 #undef PathChanger
@@ -24,7 +23,7 @@ PathChanger::PathChanger(FileName const & path)
        : popped_(false)
 {
        if (!path.empty()) {
-               pushedDir_ = getcwd();
+               pushedDir_ = FileName::getcwd();
 
                if (pushedDir_.empty() || !path.chdir()) {
                        /* FIXME: throw */