Bug 1137151: Marked destructors of refcounted FM-radio classes as protected, r=pzhang

This commit is contained in:
Thomas Zimmermann 2015-03-10 13:44:02 +01:00
parent 505e0009d7
commit 356098eaa9
3 changed files with 7 additions and 3 deletions

View File

@ -60,8 +60,6 @@ public:
mType = aType;
}
~FMRadioRequest() { }
NS_IMETHODIMP
Run()
{
@ -97,6 +95,9 @@ public:
return NS_OK;
}
protected:
~FMRadioRequest() { }
private:
FMRadioRequestArgs::Type mType;
nsWeakPtr mFMRadio;

View File

@ -238,6 +238,9 @@ public:
return NS_OK;
}
protected:
~ReadAirplaneModeSettingTask() {}
private:
nsRefPtr<FMRadioReplyRunnable> mPendingRequest;
};

View File

@ -159,7 +159,6 @@ class FMRadioService MOZ_FINAL : public IFMRadioService
public:
static FMRadioService* Singleton();
virtual ~FMRadioService();
NS_DECL_ISUPPORTS
@ -201,6 +200,7 @@ public:
protected:
FMRadioService();
virtual ~FMRadioService();
private:
int32_t RoundFrequency(double aFrequencyInMHz);