summaryrefslogtreecommitdiffstats
path: root/src/sensorsquick/qmlhumiditysensor.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-06-16 10:54:52 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-22 11:04:55 +0000
commit269d8b48b41b735fe76e5315a41bcbbb30480a5b (patch)
tree7e130e948a29020dda324551d2bd224157a5c5c8 /src/sensorsquick/qmlhumiditysensor.cpp
parent6cce2d5d53f16f764e38bb7c29196465718fa3cf (diff)
Remove unused QmlSensorReading constructor parameter
The ctor parameter is not used. For clarity it should be mentioned that the memory management of the created 'reading' is done by explicitly parenting the 'reading' in the qmlsensor baseclass. Task-number: QTBUG-92505 Change-Id: I4e50bcafa7789f7400364078302339915473a3b1 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 89905b1ea1c81013d21093c95f6fee2665fdaa69) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/sensorsquick/qmlhumiditysensor.cpp')
-rw-r--r--src/sensorsquick/qmlhumiditysensor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sensorsquick/qmlhumiditysensor.cpp b/src/sensorsquick/qmlhumiditysensor.cpp
index 4715789c..ad7aa6de 100644
--- a/src/sensorsquick/qmlhumiditysensor.cpp
+++ b/src/sensorsquick/qmlhumiditysensor.cpp
@@ -95,8 +95,7 @@ QSensor *QmlHumiditySensor::sensor() const
*/
QmlHumidityReading::QmlHumidityReading(QHumiditySensor *sensor)
- : QmlSensorReading(sensor)
- , m_sensor(sensor)
+ : m_sensor(sensor)
, m_relativeHumidity(0)
, m_absoluteHumidity(0)
{