]> git.lyx.org Git - lyx.git/blobdiff - src/support/path.C
get rid of MSVC warning (signed/unsigned comparison)
[lyx.git] / src / support / path.C
index b3e46221d6d1682b7f59dc90ae5b2330833053b1..4989dd6a196f4f4edf95e180d3f259474239aa51 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;
        }