diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2013-04-22 11:34:40 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-06 09:16:24 +0200 |
commit | 5b11584bfede4e0787532ec3c9ba763100a8898f (patch) | |
tree | a4028959e15d2887a2a4c370a5662c4dddfc055b /src/sensors/qambienttemperaturesensor.h | |
parent | e533f476239ea25edaf8fbfc6e8a76ccfd0ab330 (diff) |
Fix some potential binary compatibility issues
Mostly de-inlining methods, and in addition providing
a virtual destructor.
Change-Id: I0aef91e7a896e8a16fc023a11bd35a5ef3048ee6
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'src/sensors/qambienttemperaturesensor.h')
-rw-r--r-- | src/sensors/qambienttemperaturesensor.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sensors/qambienttemperaturesensor.h b/src/sensors/qambienttemperaturesensor.h index 134e5a92..c91392d0 100644 --- a/src/sensors/qambienttemperaturesensor.h +++ b/src/sensors/qambienttemperaturesensor.h @@ -62,8 +62,7 @@ class Q_SENSORS_EXPORT QAmbientTemperatureFilter : public QSensorFilter public: virtual bool filter(QAmbientTemperatureReading *reading) = 0; private: - bool filter(QSensorReading *reading) Q_DECL_OVERRIDE - { return filter(static_cast<QAmbientTemperatureReading*>(reading)); } + bool filter(QSensorReading *reading) Q_DECL_OVERRIDE; }; class Q_SENSORS_EXPORT QAmbientTemperatureSensor : public QSensor @@ -72,7 +71,7 @@ class Q_SENSORS_EXPORT QAmbientTemperatureSensor : public QSensor public: explicit QAmbientTemperatureSensor(QObject *parent = 0); ~QAmbientTemperatureSensor(); - QAmbientTemperatureReading *reading() const { return static_cast<QAmbientTemperatureReading*>(QSensor::reading()); } + QAmbientTemperatureReading *reading() const; static char const * const type; private: |