diff options
Diffstat (limited to 'plugins/sensors/meego/meegoorientationsensor.cpp')
-rw-r--r-- | plugins/sensors/meego/meegoorientationsensor.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/sensors/meego/meegoorientationsensor.cpp b/plugins/sensors/meego/meegoorientationsensor.cpp index de777da886..9bc1d603c8 100644 --- a/plugins/sensors/meego/meegoorientationsensor.cpp +++ b/plugins/sensors/meego/meegoorientationsensor.cpp @@ -71,14 +71,11 @@ void meegoorientationsensor::slotDataAvailable(const Unsigned& data) } bool meegoorientationsensor::doConnect(){ - if (!(QObject::connect(m_sensorInterface, SIGNAL(orientationChanged(const Unsigned&)), - this, SLOT(slotDataAvailable(const Unsigned&))))){ - return false; - } - return true; + return QObject::connect(m_sensorInterface, SIGNAL(orientationChanged(const Unsigned&)), + this, SLOT(slotDataAvailable(const Unsigned&))); } -const QString meegoorientationsensor::sensorName(){ +QString meegoorientationsensor::sensorName() const{ return "orientationsensor"; } |