diff --git a/accessible/aom/AccessibleNode.h b/accessible/aom/AccessibleNode.h index 001e94e92fe9..4b08c54849da 100644 --- a/accessible/aom/AccessibleNode.h +++ b/accessible/aom/AccessibleNode.h @@ -34,7 +34,7 @@ public: NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(AccessibleNode); JSObject* WrapObject(JSContext* aCx, JS::Handle aGivenProto) final; - virtual dom::ParentObject GetParentObject() const final; + dom::ParentObject GetParentObject() const; void GetRole(nsAString& aRole); void GetStates(nsTArray& aStates); diff --git a/dom/crypto/WebCryptoTask.h b/dom/crypto/WebCryptoTask.h index bb109201783a..d3c389a6aa2b 100644 --- a/dom/crypto/WebCryptoTask.h +++ b/dom/crypto/WebCryptoTask.h @@ -179,9 +179,9 @@ protected: void FailWithError(nsresult aRv); - virtual nsresult CalculateResult() final; + nsresult CalculateResult(); - virtual void CallCallback(nsresult rv) final; + void CallCallback(nsresult rv); private: NS_IMETHOD Run() final; diff --git a/widget/windows/nsWindowBase.h b/widget/windows/nsWindowBase.h index 159c4fc00c7f..ca9acde85561 100644 --- a/widget/windows/nsWindowBase.h +++ b/widget/windows/nsWindowBase.h @@ -25,7 +25,7 @@ public: /* * Return the HWND or null for this widget. */ - virtual HWND GetWindowHandle() final { + HWND GetWindowHandle() { return static_cast(GetNativeData(NS_NATIVE_WINDOW)); }