From 5b11584bfede4e0787532ec3c9ba763100a8898f Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Mon, 22 Apr 2013 11:34:40 +0200 Subject: Fix some potential binary compatibility issues Mostly de-inlining methods, and in addition providing a virtual destructor. Change-Id: I0aef91e7a896e8a16fc023a11bd35a5ef3048ee6 Reviewed-by: Bernd Weimer Reviewed-by: Lorn Potter --- src/sensors/qrotationsensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sensors/qrotationsensor.h') diff --git a/src/sensors/qrotationsensor.h b/src/sensors/qrotationsensor.h index 68a0d1d..e7d0e2e 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(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(QSensor::reading()); } + QRotationReading *reading() const; static char const * const type; bool hasZ() const; -- cgit v1.2.1