Bug 1118429 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/datastore; r=baku
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 06 Jan 2015 15:16:19 -0500
changeset 248111 556105cad7a7997e014baae5a7359020b35d752a
parent 248110 2a733b53c2a6a30247b838d829ee5a93aa34c703
child 248112 95fe92605dd426362c3b22a8f0153dfca05e2f00
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1118429
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1118429 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/datastore; r=baku
dom/datastore/DataStoreDB.cpp
dom/datastore/DataStoreDB.h
dom/datastore/DataStoreRevision.h
--- a/dom/datastore/DataStoreDB.cpp
+++ b/dom/datastore/DataStoreDB.cpp
@@ -38,17 +38,17 @@ class VersionChangeListener MOZ_FINAL : 
 public:
   NS_DECL_ISUPPORTS
 
   explicit VersionChangeListener(IDBDatabase* aDatabase)
     : mDatabase(aDatabase)
   {}
 
   // nsIDOMEventListener
-  NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent)
+  NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) MOZ_OVERRIDE
   {
     nsString type;
     nsresult rv = aEvent->GetType(type);
     if (NS_WARN_IF(NS_FAILED(rv))) {
       return rv;
     }
 
     if (!type.EqualsASCII("versionchange")) {
--- a/dom/datastore/DataStoreDB.h
+++ b/dom/datastore/DataStoreDB.h
@@ -38,17 +38,17 @@ public:
   nsresult Open(IDBTransactionMode aMode, const Sequence<nsString>& aDb,
                 DataStoreDBCallback* aCallback);
 
   nsresult Delete();
 
   indexedDB::IDBTransaction* Transaction() const;
 
   // nsIDOMEventListener
-  NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+  NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) MOZ_OVERRIDE;
 
 private:
   ~DataStoreDB();
 
   nsresult CreateFactoryIfNeeded();
 
   nsresult UpgradeSchema(nsIDOMEvent* aEvent);
 
--- a/dom/datastore/DataStoreRevision.h
+++ b/dom/datastore/DataStoreRevision.h
@@ -33,17 +33,17 @@ public:
 
   nsresult AddRevision(JSContext* aCx,
                        indexedDB::IDBObjectStore* aStore,
                        uint32_t aObjectId,
                        RevisionType aRevisionType,
                        DataStoreRevisionCallback* aCallback);
 
   // nsIDOMEventListener
-  NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+  NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) MOZ_OVERRIDE;
 
 private:
   ~DataStoreRevision() {}
   nsRefPtr<DataStoreRevisionCallback> mCallback;
   nsRefPtr<indexedDB::IDBRequest> mRequest;
   nsString mRevisionID;
 };