зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1137151: Marked destructors of refcounted FM-radio classes as protected, r=pzhang
This commit is contained in:
Родитель
bdb2ed0946
Коммит
34f9276ac2
|
@ -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;
|
||||
|
|
|
@ -238,6 +238,9 @@ public:
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
protected:
|
||||
~ReadAirplaneModeSettingTask() {}
|
||||
|
||||
private:
|
||||
nsRefPtr<FMRadioReplyRunnable> mPendingRequest;
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче