summaryrefslogtreecommitdiff
path: root/src/sensors/qorientationsensor.h
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-05-23 13:18:07 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-05-23 13:18:07 +0200
commite8237a3d19e90c31af6d5a6c5e3a2f7815740226 (patch)
tree24696c0400318684bc00cf36d41a445051b67b96 /src/sensors/qorientationsensor.h
parentf57241666fd4b7074cbe33567827293e2a0a9ad5 (diff)
parent3d75c54b8d0d055eff2a41cef7733b6204f8241c (diff)
downloadqtsensors-e8237a3d19e90c31af6d5a6c5e3a2f7815740226.tar.gz
Merge remote-tracking branch 'origin/stable' into dev
Change-Id: I497c153fe555fbfbbd5fbb40f65f614ee33b065d
Diffstat (limited to 'src/sensors/qorientationsensor.h')
-rw-r--r--src/sensors/qorientationsensor.h4
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: