Commit c59d82a4 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

simplify unnecessarily platform-dependent tempdir determination

Reviewed-by: hunger
parent c4e8b1e9
......@@ -456,12 +456,7 @@ void ProjectExplorerPlugin::testGnuMakeParserTaskMangling()
QFETCH(Task, outputTask);
// setup files:
QString tempdir;
#if defined Q_OS_WIN
tempdir = QDir::fromNativeSeparators(qgetenv("TEMP"));
#else
tempdir = QLatin1String("/tmp");
#endif
QString tempdir = QDir::tempPath();
tempdir.append(QChar('/'));
tempdir.append(QUuid::createUuid().toString());
tempdir.append(QChar('/'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment