Bug 1119254 - Mark virtual overridden functions as MOZ_OVERRIDE in xpcom; r=froydnj

This commit is contained in:
Ehsan Akhgari 2015-01-08 10:12:45 -05:00
parent 2379621af0
commit f187581528
3 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,8 @@ public:
NS_DECL_ISUPPORTS
// IFoo implementation
NS_IMETHOD_(MozExternalRefCountType) RefCnt() { return mRefCnt; }
NS_IMETHOD_(int32_t) ID() { return mID; }
NS_IMETHOD_(MozExternalRefCountType) RefCnt() MOZ_OVERRIDE { return mRefCnt; }
NS_IMETHOD_(int32_t) ID() MOZ_OVERRIDE { return mID; }
static int32_t gCount;

View File

@ -96,9 +96,9 @@ public:
NS_IMETHOD CreateInstance(nsISupports* aDelegate,
const nsIID& aIID,
void** aResult);
void** aResult) MOZ_OVERRIDE;
NS_IMETHOD LockFactory(bool aLock) {
NS_IMETHOD LockFactory(bool aLock) MOZ_OVERRIDE {
return NS_OK;
}

View File

@ -78,7 +78,7 @@ public:
TimerCallback(nsIThread** aThreadPtr, ReentrantMonitor* aReentrantMonitor)
: mThreadPtr(aThreadPtr), mReentrantMonitor(aReentrantMonitor) { }
NS_IMETHOD Notify(nsITimer* aTimer) {
NS_IMETHOD Notify(nsITimer* aTimer) MOZ_OVERRIDE {
NS_ASSERTION(mThreadPtr, "Callback was not supposed to be called!");
nsCOMPtr<nsIThread> current(do_GetCurrentThread());