зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1038152 - Make the destructor of WindowsGamepad.cpp's Observer private; r=bjacob
This commit is contained in:
Родитель
b505b3890c
Коммит
13533598f5
|
@ -281,11 +281,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
virtual ~Observer()
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
|
||||
void SetDeviceChangeTimer()
|
||||
{
|
||||
// Set stable timer, since we will get multiple devices-changed
|
||||
|
@ -297,6 +292,11 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
virtual ~Observer()
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
|
||||
// Gamepad service owns us, we just hold a reference back to it.
|
||||
WindowsGamepadService& mSvc;
|
||||
nsCOMPtr<nsITimer> mTimer;
|
||||
|
|
Загрузка…
Ссылка в новой задаче