Bug 1137151: Marked destructors of ref-counted GonkHAL classes as protected, r=dhylands

This commit is contained in:
Thomas Zimmermann 2015-03-10 13:44:02 +01:00
parent da2f511ba3
commit 7c9ffeed9d
2 changed files with 15 additions and 5 deletions

View File

@ -297,6 +297,9 @@ public:
static bool ShuttingDown() { return sShuttingDown; }
protected:
~VibratorRunnable() {}
private:
Monitor mMonitor;
@ -471,7 +474,7 @@ public:
} // anonymous namespace
class BatteryObserver : public IUeventObserver
class BatteryObserver MOZ_FINAL : public IUeventObserver
{
public:
NS_INLINE_DECL_REFCOUNTING(BatteryObserver)
@ -495,6 +498,9 @@ public:
}
}
protected:
~BatteryObserver() {}
private:
nsRefPtr<BatteryUpdater> mUpdater;
};
@ -1172,6 +1178,10 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
protected:
~OomVictimLogger() {}
private:
double mLastLineChecked;
ScopedFreePtr<regex_t> mRegexes;

View File

@ -61,10 +61,6 @@ public:
GetInitialState();
}
virtual ~SwitchHandler()
{
}
bool CheckEvent(NetlinkEvent* aEvent)
{
if (strcmp(GetSubsystem(), aEvent->getSubsystem()) ||
@ -86,6 +82,10 @@ public:
return mDevice;
}
protected:
virtual ~SwitchHandler()
{
}
virtual const char* GetSubsystem()
{
return "switch";