diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-01-19 16:44:22 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2017-01-20 12:17:10 +0000 |
commit | c6f90e575e2e261f7fa50f951b6fc1824ae5c12f (patch) | |
tree | 7f3564ad1491a5f40e64bcee89d70b884409885f /src/plugins/debugger/outputcollector.cpp | |
parent | e6017c40fca059b27e449f0605f4d79b78de0ff3 (diff) | |
download | qt-creator-c6f90e575e2e261f7fa50f951b6fc1824ae5c12f.tar.gz |
Utils: Introduce a TemporaryDirectory and TemporaryFile class
Both wrap the corresponding Qt class, but make sure all temporary files
or directories are created inside a "master temporary directory".
Change-Id: I55461be507c828c965224c02863ea5ed9bbf9498
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/debugger/outputcollector.cpp')
-rw-r--r-- | src/plugins/debugger/outputcollector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/outputcollector.cpp b/src/plugins/debugger/outputcollector.cpp index 4fad571c61..da93e631b9 100644 --- a/src/plugins/debugger/outputcollector.cpp +++ b/src/plugins/debugger/outputcollector.cpp @@ -34,9 +34,9 @@ #include <stdlib.h> #else +#include <utils/temporaryfile.h> #include <QSocketNotifier> -#include <QTemporaryFile> #include <QVarLengthArray> #include <sys/ioctl.h> @@ -85,7 +85,7 @@ bool OutputCollector::listen() QByteArray codedServerPath; forever { { - QTemporaryFile tf; + Utils::TemporaryFile tf("outputcollector"); if (!tf.open()) { m_errorString = tr("Cannot create temporary file: %1").arg(tf.errorString()); m_serverPath.clear(); |