Bug 1119261 - Mark virtual overridden functions as MOZ_OVERRIDE in embedding; r=bsmedberg

This commit is contained in:
Ehsan Akhgari 2015-01-08 10:15:16 -05:00
parent b07b46770a
commit 7d2ce38fec
7 changed files with 24 additions and 24 deletions

View File

@ -155,7 +155,7 @@ public:
ChromeTooltipListener(nsWebBrowser* inBrowser, nsIWebBrowserChrome* inChrome);
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) MOZ_OVERRIDE;
NS_IMETHOD MouseMove(nsIDOMEvent* aMouseEvent);
// Add/remove the relevant listeners, based on what interfaces
@ -227,7 +227,7 @@ public:
ChromeContextMenuListener(nsWebBrowser* inBrowser, nsIWebBrowserChrome* inChrome);
// nsIDOMContextMenuListener
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) MOZ_OVERRIDE;
// Add/remove the relevant listeners, based on what interfaces
// the embedding chrome implements.

View File

@ -94,12 +94,12 @@ public:
NS_DECL_CYCLE_COLLECTION_CLASS(nsFindContentIterator)
// nsIContentIterator
virtual nsresult Init(nsINode* aRoot)
virtual nsresult Init(nsINode* aRoot) MOZ_OVERRIDE
{
NS_NOTREACHED("internal error");
return NS_ERROR_NOT_IMPLEMENTED;
}
virtual nsresult Init(nsIDOMRange* aRange)
virtual nsresult Init(nsIDOMRange* aRange) MOZ_OVERRIDE
{
NS_NOTREACHED("internal error");
return NS_ERROR_NOT_IMPLEMENTED;
@ -107,13 +107,13 @@ public:
// Not a range because one of the endpoints may be anonymous.
nsresult Init(nsIDOMNode* aStartNode, int32_t aStartOffset,
nsIDOMNode* aEndNode, int32_t aEndOffset);
virtual void First();
virtual void Last();
virtual void Next();
virtual void Prev();
virtual nsINode* GetCurrentNode();
virtual bool IsDone();
virtual nsresult PositionAt(nsINode* aCurNode);
virtual void First() MOZ_OVERRIDE;
virtual void Last() MOZ_OVERRIDE;
virtual void Next() MOZ_OVERRIDE;
virtual void Prev() MOZ_OVERRIDE;
virtual nsINode* GetCurrentNode() MOZ_OVERRIDE;
virtual bool IsDone() MOZ_OVERRIDE;
virtual nsresult PositionAt(nsINode* aCurNode) MOZ_OVERRIDE;
protected:
virtual ~nsFindContentIterator()

View File

@ -25,7 +25,7 @@ class PrintProgressDialogChild MOZ_FINAL : public PPrintProgressDialogChild,
public:
MOZ_IMPLICIT PrintProgressDialogChild(nsIObserver* aOpenObserver);
virtual bool RecvDialogOpened();
virtual bool RecvDialogOpened() MOZ_OVERRIDE;
private:
virtual ~PrintProgressDialogChild();
@ -37,4 +37,4 @@ private:
} // namespace embedding
} // namespace mozilla
#endif
#endif

View File

@ -29,26 +29,26 @@ public:
virtual bool
RecvStateChange(
const long& stateFlags,
const nsresult& status);
const nsresult& status) MOZ_OVERRIDE;
virtual bool
RecvProgressChange(
const long& curSelfProgress,
const long& maxSelfProgress,
const long& curTotalProgress,
const long& maxTotalProgress);
const long& maxTotalProgress) MOZ_OVERRIDE;
virtual bool
RecvDocTitleChange(const nsString& newTitle);
RecvDocTitleChange(const nsString& newTitle) MOZ_OVERRIDE;
virtual bool
RecvDocURLChange(const nsString& newURL);
RecvDocURLChange(const nsString& newURL) MOZ_OVERRIDE;
virtual void
ActorDestroy(ActorDestroyReason aWhy);
ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
virtual bool
Recv__delete__();
Recv__delete__() MOZ_OVERRIDE;
private:
virtual ~PrintProgressDialogParent();

View File

@ -23,10 +23,10 @@ public:
NS_DECL_NSIPRINTINGPROMPTSERVICE
virtual PPrintProgressDialogChild*
AllocPPrintProgressDialogChild();
AllocPPrintProgressDialogChild() MOZ_OVERRIDE;
virtual bool
DeallocPPrintProgressDialogChild(PPrintProgressDialogChild* aActor);
DeallocPPrintProgressDialogChild(PPrintProgressDialogChild* aActor) MOZ_OVERRIDE;
};
#endif

View File

@ -221,7 +221,7 @@ public:
nsEncoderNodeFixup();
NS_DECL_ISUPPORTS
NS_IMETHOD FixupNode(nsIDOMNode *aNode, bool *aSerializeCloneKids, nsIDOMNode **aOutNode);
NS_IMETHOD FixupNode(nsIDOMNode *aNode, bool *aSerializeCloneKids, nsIDOMNode **aOutNode) MOZ_OVERRIDE;
nsWebBrowserPersist *mWebBrowserPersist;

View File

@ -143,8 +143,8 @@ class nsWatcherWindowEnumerator : public nsISimpleEnumerator {
public:
explicit nsWatcherWindowEnumerator(nsWindowWatcher *inWatcher);
NS_IMETHOD HasMoreElements(bool *retval);
NS_IMETHOD GetNext(nsISupports **retval);
NS_IMETHOD HasMoreElements(bool *retval) MOZ_OVERRIDE;
NS_IMETHOD GetNext(nsISupports **retval) MOZ_OVERRIDE;
NS_DECL_ISUPPORTS