Bug 1118612 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/promise; r=baku

This commit is contained in:
Ehsan Akhgari 2015-01-06 23:51:59 -05:00
Родитель 755b86ca3a
Коммит 3ca715b071
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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>