summaryrefslogtreecommitdiffstats
path: root/src/msc.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-11 22:05:13 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-18 20:57:40 (GMT)
commit0d05e79d67b5b808918541f429b06805207e8bdb (patch)
tree2ab5bbcc57e494bfef99421e99a84af0eb8d9797 /src/msc.cpp
parent3204a2206aa617b41c6da5999c3b826057d274f3 (diff)
downloadDoxygen-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/msc.cpp')
-rw-r--r--src/msc.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/msc.cpp b/src/msc.cpp
index 29c9334..17a7a5d 100644
--- a/src/msc.cpp
+++ b/src/msc.cpp
@@ -1,12 +1,12 @@
/******************************************************************************
*
- *
+ *
*
* Copyright (C) 1997-2015 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -25,8 +25,7 @@
#include "util.h"
#include "ftextstream.h"
#include "mscgen_api.h"
-
-#include <qdir.h>
+#include "dir.h"
static const int maxCmdLine = 40960;
@@ -160,7 +159,7 @@ static QCString getMscImageMapFromFile(const QCString& inFile, const QCString& o
QGString result;
FTextStream tmpout(&result);
convertMapFile(tmpout, outFile, relPath, context);
- QDir().remove(outFile);
+ Dir().remove(outFile.str());
return result.data();
}