зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1118612
- Mark virtual overridden functions as MOZ_OVERRIDE in dom/promise; r=baku
This commit is contained in:
Родитель
755b86ca3a
Коммит
3ca715b071
|
@ -788,13 +788,13 @@ public:
|
|||
}
|
||||
|
||||
void
|
||||
ResolvedCallback(JSContext* aCx, JS::Handle<JS::Value> aValue)
|
||||
ResolvedCallback(JSContext* aCx, JS::Handle<JS::Value> aValue) MOZ_OVERRIDE
|
||||
{
|
||||
mCountdownHolder->SetValue(mIndex, aValue);
|
||||
}
|
||||
|
||||
void
|
||||
RejectedCallback(JSContext* aCx, JS::Handle<JS::Value> aValue)
|
||||
RejectedCallback(JSContext* aCx, JS::Handle<JS::Value> aValue) MOZ_OVERRIDE
|
||||
{
|
||||
// Should never be attached to Promise as a reject handler.
|
||||
MOZ_ASSERT(false, "AllResolveHandler should never be attached to a Promise's reject handler!");
|
||||
|
|
|
@ -62,7 +62,7 @@ class PromiseWorkerProxy : public PromiseNativeHandler,
|
|||
friend class PromiseWorkerProxyRunnable;
|
||||
|
||||
// This overrides the non-threadsafe refcounting in PromiseNativeHandler.
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(PromiseWorkerProxy)
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(PromiseWorkerProxy, MOZ_OVERRIDE)
|
||||
|
||||
public:
|
||||
static already_AddRefed<PromiseWorkerProxy>
|
||||
|
|
Загрузка…
Ссылка в новой задаче