summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsensor/test_sensorplugin.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-12-03 01:47:31 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2017-11-14 07:04:57 +0000
commit5858916b27bd261eaa5c3869bc46557e18bd8e02 (patch)
treee37f84e81ce3beec6c38b25e54b5ab852b843edb /tests/auto/qsensor/test_sensorplugin.cpp
parente3b6a54a75482c5ddd91dab50a86629053c69a2e (diff)
Add missing override and remove redundant virtual
Change-Id: I51c0fc424f44ae68c3c1c4cf6377e7701ee5a0dd Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'tests/auto/qsensor/test_sensorplugin.cpp')
-rw-r--r--tests/auto/qsensor/test_sensorplugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qsensor/test_sensorplugin.cpp b/tests/auto/qsensor/test_sensorplugin.cpp
index fe119619..a48428b3 100644
--- a/tests/auto/qsensor/test_sensorplugin.cpp
+++ b/tests/auto/qsensor/test_sensorplugin.cpp
@@ -44,7 +44,7 @@ class TestSensorPlugin : public QObject,
Q_PLUGIN_METADATA(IID "com.qt-project.Qt.QSensorPluginInterface/1.0")
Q_INTERFACES(QSensorPluginInterface QSensorChangesInterface)
public:
- void registerSensors()
+ void registerSensors() override
{
static bool recursive = false;
QVERIFY2(!recursive, "Recursively called TestSensorPlugin::registerSensors!");
@@ -62,7 +62,7 @@ public:
QSensorManager::registerBackend(TestSensor2::type, testsensor2impl::id, this);
}
- void sensorsChanged()
+ void sensorsChanged() override
{
// Register a new type on initial load
// This is testing the "don't emit availableSensorsChanged() too many times" functionality.
@@ -80,7 +80,7 @@ public:
}
}
- QSensorBackend *createBackend(QSensor *sensor)
+ QSensorBackend *createBackend(QSensor *sensor) override
{
if (sensor->identifier() == testsensorimpl::id) {
return new testsensorimpl(sensor);