diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-11 22:05:13 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-18 20:57:40 (GMT) |
commit | 0d05e79d67b5b808918541f429b06805207e8bdb (patch) | |
tree | 2ab5bbcc57e494bfef99421e99a84af0eb8d9797 /src/portable.cpp | |
parent | 3204a2206aa617b41c6da5999c3b826057d274f3 (diff) | |
download | Doxygen-0d05e79d67b5b808918541f429b06805207e8bdb.zip Doxygen-0d05e79d67b5b808918541f429b06805207e8bdb.tar.gz Doxygen-0d05e79d67b5b808918541f429b06805207e8bdb.tar.bz2 |
Refactoring: Replaced QDir with Dir
- Dir 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.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/portable.cpp b/src/portable.cpp index de713e8..a1f1e96 100644 --- a/src/portable.cpp +++ b/src/portable.cpp @@ -17,13 +17,13 @@ extern char **environ; #endif #include <ctype.h> -#include <qdir.h> #include <map> #include <string> #include "fileinfo.h" #include "util.h" +#include "dir.h" #ifndef NODEBUG #include "debug.h" #endif @@ -519,14 +519,14 @@ void Portable::setShortDir() long length = 0; TCHAR* buffer = NULL; // First obtain the size needed by passing NULL and 0. - length = GetShortPathName(QDir::currentDirPath().data(), NULL, 0); + length = GetShortPathName(Dir::currentDirPath().c_str(), NULL, 0); // Dynamically allocate the correct size // (terminating null char was included in length) buffer = new TCHAR[length]; // Now simply call again using same (long) path. - length = GetShortPathName(QDir::currentDirPath().data(), buffer, length); + length = GetShortPathName(Dir::currentDirPath().c_str(), buffer, length); // Set the correct directory (short name) - QDir::setCurrent(buffer); + Dir::setCurrent(buffer); delete [] buffer; #endif } |