aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-02-20 13:38:24 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-02-23 07:38:42 +0000
commite160b26d8c7476c63f6220ac69d1d6405e8ce3aa (patch)
treea63896f1b3d74ab9b50d45070213d6897a8d7248 /tests
parent6615e52e4308962a7d10d606eead188fbfe198f3 (diff)
Replace 'typedef' with 'using' where it is possible
One exception is that the 'typedef' for function pointers were skipped due to an additional work is required. Change-Id: I2112fded3abeaee1d1f49f56adfd2914d5db0324 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/testdata-qt/qml-debugging/main.cpp4
-rw-r--r--tests/benchmarker/benchmarker.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/blackbox/testdata-qt/qml-debugging/main.cpp b/tests/auto/blackbox/testdata-qt/qml-debugging/main.cpp
index 535d6d63f..7311f2d60 100644
--- a/tests/auto/blackbox/testdata-qt/qml-debugging/main.cpp
+++ b/tests/auto/blackbox/testdata-qt/qml-debugging/main.cpp
@@ -32,13 +32,13 @@
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
#include <QGuiApplication>
#include <QQmlApplicationEngine>
-typedef QGuiApplication Application;
+using Application = QGuiApplication;
#define AH_SO_THIS_IS_QT5
#else
#include <QApplication>
#include <QDeclarativeView>
#define AH_SO_THIS_IS_QT4
-typedef QApplication Application;
+using Application = QApplication;
#endif
int main(int argc, char *argv[])
diff --git a/tests/benchmarker/benchmarker.h b/tests/benchmarker/benchmarker.h
index 7027c9d15..9b6d5a157 100644
--- a/tests/benchmarker/benchmarker.h
+++ b/tests/benchmarker/benchmarker.h
@@ -48,7 +48,7 @@ public:
qint64 oldPeakMemoryUsage;
qint64 newPeakMemoryUsage;
};
-typedef QHash<Activity, BenchmarkResult> BenchmarkResults;
+using BenchmarkResults = QHash<Activity, BenchmarkResult>;
class Benchmarker
{