]> 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 3290274686653992a08a34f86ba06f36c5ea92ae..4989dd6a196f4f4edf95e180d3f259474239aa51 100644 (file)
@@ -14,6 +14,7 @@
 #define PATH_C
 
 #include "support/path.h"
+#include "support/filename.h"
 #include "support/lyxlib.h"
 
 
@@ -28,10 +29,10 @@ Path::Path(string const & path)
 {
        if (!path.empty()) {
                pushedDir_ = getcwd();
-#if 0
-               if (pushedDir_.empty() || chdir(path))
-                       /* FIXME: throw */;
-#endif
+
+               if (pushedDir_.empty() || chdir(FileName(path))) {
+                       /* FIXME: throw */
+               }
        } else {
                popped_ = true;
        }