summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2016-04-21 15:24:16 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2016-04-22 11:36:32 +0000
commitedf55f657a46fe16bf80d63f523848bb9b71d9f3 (patch)
tree0c32d61ffd423c9c1b045ac343b6cc3eada0194a /tests
parent33d19928d7c5beeacdc3d3c57bc5ed95d26934a5 (diff)
Use 'auto' where it is possible
Change-Id: I3d915a6230a1f35317abc39d6266a9d46a5d9be6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/plugins/genericcanbus/main.cpp2
-rw-r--r--tests/auto/qcanbusdevice/tst_qcanbusdevice.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/plugins/genericcanbus/main.cpp b/tests/auto/plugins/genericcanbus/main.cpp
index 2963ee5..3fc6225 100644
--- a/tests/auto/plugins/genericcanbus/main.cpp
+++ b/tests/auto/plugins/genericcanbus/main.cpp
@@ -53,7 +53,7 @@ public:
QCanBusDevice *createDevice(const QString &interfaceName) const
{
Q_UNUSED(interfaceName)
- QCanBusDevice *device = new DummyBackend();
+ auto device = new DummyBackend();
return device;
}
};
diff --git a/tests/auto/qcanbusdevice/tst_qcanbusdevice.cpp b/tests/auto/qcanbusdevice/tst_qcanbusdevice.cpp
index 3193119..b99ac64 100644
--- a/tests/auto/qcanbusdevice/tst_qcanbusdevice.cpp
+++ b/tests/auto/qcanbusdevice/tst_qcanbusdevice.cpp
@@ -247,7 +247,7 @@ void tst_QCanBusDevice::error()
QSignalSpy spy(device, SIGNAL(errorOccurred(QCanBusDevice::CanBusError)));
QString testString(QStringLiteral("testString"));
- tst_Backend *backend = qobject_cast<tst_Backend *>(device);
+ auto backend = qobject_cast<tst_Backend *>(device);
QVERIFY(backend);
//NoError