зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1322964 - MozPromise clean-up - r=jwwang
Removed 'virtual' from overrides, as per coding guidelines. Fixed some incorrect indentations, and inconsistencies. MozReview-Commit-ID: 4kNVgoDljG3 --HG-- extra : rebase_source : 7b25abacc7cfc1a6898963bc58120204c70bee45
This commit is contained in:
Родитель
bab46fee29
Коммит
9a05a0446d
|
@ -376,7 +376,7 @@ protected:
|
|||
mResponseTarget->Dispatch(runnable.forget(), AbstractThread::DontAssertDispatchSuccess);
|
||||
}
|
||||
|
||||
virtual void Disconnect() override
|
||||
void Disconnect() override
|
||||
{
|
||||
MOZ_ASSERT(ThenValueBase::mResponseTarget->IsCurrentThreadIn());
|
||||
MOZ_DIAGNOSTIC_ASSERT(!Request::mComplete);
|
||||
|
@ -486,7 +486,7 @@ protected:
|
|||
, mResolveMethod(aResolveMethod)
|
||||
, mRejectMethod(aRejectMethod) {}
|
||||
|
||||
virtual void Disconnect() override
|
||||
void Disconnect() override
|
||||
{
|
||||
ThenValueBase::Disconnect();
|
||||
|
||||
|
@ -497,7 +497,7 @@ protected:
|
|||
}
|
||||
|
||||
protected:
|
||||
virtual already_AddRefed<MozPromise> DoResolveOrRejectInternal(const ResolveOrRejectValue& aValue) override
|
||||
already_AddRefed<MozPromise> DoResolveOrRejectInternal(const ResolveOrRejectValue& aValue) override
|
||||
{
|
||||
RefPtr<MozPromise> completion;
|
||||
if (aValue.IsResolve()) {
|
||||
|
@ -536,7 +536,7 @@ protected:
|
|||
mRejectFunction.emplace(Move(aRejectFunction));
|
||||
}
|
||||
|
||||
virtual void Disconnect() override
|
||||
void Disconnect() override
|
||||
{
|
||||
ThenValueBase::Disconnect();
|
||||
|
||||
|
@ -549,7 +549,7 @@ protected:
|
|||
}
|
||||
|
||||
protected:
|
||||
virtual already_AddRefed<MozPromise> DoResolveOrRejectInternal(const ResolveOrRejectValue& aValue) override
|
||||
already_AddRefed<MozPromise> DoResolveOrRejectInternal(const ResolveOrRejectValue& aValue) override
|
||||
{
|
||||
// Note: The usage of InvokeCallbackMethod here requires that
|
||||
// ResolveFunction/RejectFunction are capture-lambdas (i.e. anonymous
|
||||
|
|
Загрузка…
Ссылка в новой задаче