summaryrefslogtreecommitdiffstats
path: root/src/sensors/qrotationsensor.h
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2013-04-22 11:34:40 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-06 09:16:24 +0200
commit5b11584bfede4e0787532ec3c9ba763100a8898f (patch)
treea4028959e15d2887a2a4c370a5662c4dddfc055b /src/sensors/qrotationsensor.h
parente533f476239ea25edaf8fbfc6e8a76ccfd0ab330 (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/qrotationsensor.h')
-rw-r--r--src/sensors/qrotationsensor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sensors/qrotationsensor.h b/src/sensors/qrotationsensor.h
index 68a0d1d3..e7d0e2e9 100644
--- a/src/sensors/qrotationsensor.h
+++ b/src/sensors/qrotationsensor.h
@@ -68,7 +68,7 @@ class Q_SENSORS_EXPORT QRotationFilter : public QSensorFilter
public:
virtual bool filter(QRotationReading *reading) = 0;
private:
- bool filter(QSensorReading *reading) { return filter(static_cast<QRotationReading*>(reading)); }
+ bool filter(QSensorReading *reading);
};
class QRotationSensorPrivate;
@@ -80,7 +80,7 @@ class Q_SENSORS_EXPORT QRotationSensor : public QSensor
public:
explicit QRotationSensor(QObject *parent = 0);
virtual ~QRotationSensor();
- QRotationReading *reading() const { return static_cast<QRotationReading*>(QSensor::reading()); }
+ QRotationReading *reading() const;
static char const * const type;
bool hasZ() const;