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/qorientationsensor.h | |
parent | e533f476239ea25edaf8fbfc6e8a76ccfd0ab330 (diff) | |
download | qtsensors-5b11584bfede4e0787532ec3c9ba763100a8898f.tar.gz |
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/qorientationsensor.h')
-rw-r--r-- | src/sensors/qorientationsensor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sensors/qorientationsensor.h b/src/sensors/qorientationsensor.h index 082598f..a6fccb8 100644 --- a/src/sensors/qorientationsensor.h +++ b/src/sensors/qorientationsensor.h @@ -74,7 +74,7 @@ class Q_SENSORS_EXPORT QOrientationFilter : public QSensorFilter public: virtual bool filter(QOrientationReading *reading) = 0; private: - bool filter(QSensorReading *reading) { return filter(static_cast<QOrientationReading*>(reading)); } + bool filter(QSensorReading *reading); }; class Q_SENSORS_EXPORT QOrientationSensor : public QSensor @@ -83,7 +83,7 @@ class Q_SENSORS_EXPORT QOrientationSensor : public QSensor public: explicit QOrientationSensor(QObject *parent = 0); virtual ~QOrientationSensor(); - QOrientationReading *reading() const { return static_cast<QOrientationReading*>(QSensor::reading()); } + QOrientationReading *reading() const; static char const * const type; private: |