aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/utils
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/utils')
-rw-r--r--tests/auto/utils/process/processtestapp/main.cpp2
-rw-r--r--tests/auto/utils/process/processtestapp/processtestapp.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/utils/process/processtestapp/main.cpp b/tests/auto/utils/process/processtestapp/main.cpp
index 91952c2528e..34923c407aa 100644
--- a/tests/auto/utils/process/processtestapp/main.cpp
+++ b/tests/auto/utils/process/processtestapp/main.cpp
@@ -28,7 +28,7 @@ int main(int argc, char **argv)
#endif
QCoreApplication app(argc, argv);
- auto cleanup = qScopeGuard([] { Singleton::deleteAll(); });
+ const QScopeGuard cleanup([] { Singleton::deleteAll(); });
TemporaryDirectory::setMasterTemporaryDirectory(QDir::tempPath() + "/"
+ Core::Constants::IDE_CASED_ID + "-XXXXXX");
diff --git a/tests/auto/utils/process/processtestapp/processtestapp.cpp b/tests/auto/utils/process/processtestapp/processtestapp.cpp
index 3905d0a22b5..6cf7510eb78 100644
--- a/tests/auto/utils/process/processtestapp/processtestapp.cpp
+++ b/tests/auto/utils/process/processtestapp/processtestapp.cpp
@@ -33,7 +33,7 @@ void ProcessTestApp::invokeSubProcess()
{
ProcessTestApp processTestApp;
int returnValue = 1;
- auto cleanup = qScopeGuard([&returnValue] {
+ const QScopeGuard cleanup([&returnValue] {
QMetaObject::invokeMethod(qApp, [returnValue] {
qApp->exit(returnValue);
}, Qt::QueuedConnection);