diff options
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: |