diff --git a/hal/gonk/GonkSensor.cpp b/hal/gonk/GonkSensor.cpp index 72a087c4167..ff88143e29f 100644 --- a/hal/gonk/GonkSensor.cpp +++ b/hal/gonk/GonkSensor.cpp @@ -199,10 +199,8 @@ class PollSensor { nsCOMPtr PollSensor::mRunnable = NULL; -class SwitchSensor { +class SwitchSensor : public RefCounted { public: - NS_INLINE_DECL_REFCOUNTING(SwitchSensor) - SwitchSensor(bool aActivate, sensor_t aSensor, pthread_t aThreadId) : mActivate(aActivate), mSensor(aSensor), mThreadId(aThreadId) { }