summaryrefslogtreecommitdiffstats
path: root/src/sensors/qmagnetometer.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-05-12 10:17:24 +0300
committerJuha Vuolle <juha.vuolle@insta.fi>2021-05-19 08:25:33 +0300
commitd70a9906fced63aa1b8502dbdac58d4c244ef956 (patch)
tree0db8326ab7dd36da26e08e0825be01f631cbc3c7 /src/sensors/qmagnetometer.cpp
parent8eb9e3dd16c0057f81fa41c001722f31af32dfdf (diff)
Rename subclass static variable which shadowed baseclass method
The 'type' static variable shadowed the 'QSensors::type()' method of the baseclass. While this is easy to workaround it is better to remove such naming clash. Task-number: QTBUG-60246 Change-Id: Id0ddae978377ea4d4d0202a572c554c2541f9364 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/sensors/qmagnetometer.cpp')
-rw-r--r--src/sensors/qmagnetometer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sensors/qmagnetometer.cpp b/src/sensors/qmagnetometer.cpp
index ac2231ec..b92acfea 100644
--- a/src/sensors/qmagnetometer.cpp
+++ b/src/sensors/qmagnetometer.cpp
@@ -199,7 +199,7 @@ bool QMagnetometerFilter::filter(QSensorReading *reading)
return filter(static_cast<QMagnetometerReading*>(reading));
}
-char const * const QMagnetometer::type("QMagnetometer");
+char const * const QMagnetometer::sensorType("QMagnetometer");
/*!
\class QMagnetometer
@@ -222,7 +222,7 @@ char const * const QMagnetometer::type("QMagnetometer");
Construct the sensor as a child of \a parent.
*/
QMagnetometer::QMagnetometer(QObject *parent)
- : QSensor(QMagnetometer::type, *new QMagnetometerPrivate, parent)
+ : QSensor(QMagnetometer::sensorType, *new QMagnetometerPrivate, parent)
{
}