summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-08 22:00:00 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-18 20:57:40 (GMT)
commit3204a2206aa617b41c6da5999c3b826057d274f3 (patch)
tree2dc4b6d3df48302889e3b868eaed9ea30d0b2b09 /src/portable.cpp
parent781c3ec1556b711c74fc0d6ebb343569eb1491ab (diff)
downloadDoxygen-3204a2206aa617b41c6da5999c3b826057d274f3.zip
Doxygen-3204a2206aa617b41c6da5999c3b826057d274f3.tar.gz
Doxygen-3204a2206aa617b41c6da5999c3b826057d274f3.tar.bz2
Refactoring: Replaced QFileInfo with FileInfo
- FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
Diffstat (limited to 'src/portable.cpp')
-rw-r--r--src/portable.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/portable.cpp b/src/portable.cpp
index 4cf3244..de713e8 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -21,6 +21,8 @@ extern char **environ;
#include <map>
#include <string>
+#include "fileinfo.h"
+
#include "util.h"
#ifndef NODEBUG
#include "debug.h"
@@ -340,7 +342,7 @@ char Portable::pathListSeparator()
static bool ExistsOnPath(const char *fileName)
{
- QFileInfo fi1(fileName);
+ FileInfo fi1(fileName);
if (fi1.exists()) return true;
const char *p = Portable::getenv("PATH");
@@ -354,7 +356,7 @@ static bool ExistsOnPath(const char *fileName)
QCString locFile(paths.mid(strt,idx-strt));
locFile += pathSep;
locFile += fileName;
- QFileInfo fi(locFile);
+ FileInfo fi(locFile.str());
if (fi.exists()) return true;
strt = idx + 1;
}
@@ -364,7 +366,7 @@ static bool ExistsOnPath(const char *fileName)
{
locFile += pathSep;
locFile += fileName;
- QFileInfo fi(locFile);
+ FileInfo fi(locFile.str());
if (fi.exists()) return true;
}
return false;