]> git.lyx.org Git - features.git/blobdiff - src/support/os_cygwin.cpp
transfer os::is_absolute_path() to FileName::isAbsolute().
[features.git] / src / support / os_cygwin.cpp
index cf57336f7dd176210c7ab29aff29db71a40779ee..b498272907e958d9c5cd44b6843007b2f655c26b 100644 (file)
@@ -187,7 +187,7 @@ string latex_path(string const & p)
        // on windows_style_tex_paths_), but we use always forward slashes,
        // since it gets written into a .tex file.
 
-       if (windows_style_tex_paths_ && is_absolute_path(p)) {
+       if (windows_style_tex_paths_ && FileName(p).isAbsolute()) {
                string dos_path = convert_path(p, PathStyle(windows));
                LYXERR(Debug::LATEX, "<Path correction for LaTeX> ["
                        << p << "]->>[" << dos_path << ']');
@@ -198,18 +198,6 @@ string latex_path(string const & p)
 }
 
 
-bool is_absolute_path(string const & p)
-{
-       if (p.empty())
-               return false;
-
-       bool isDosPath = (p.length() > 1 && p[1] == ':');
-       bool isUnixPath = (p[0] == '/');
-
-       return isDosPath || isUnixPath;
-}
-
-
 // returns a string suitable to be passed to popen when
 // reading a pipe
 char const * popen_read_mode()