Bug 1125182 - Mark some functions in nsCompartmentInfo as override; r=blassey
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 23 Jan 2015 10:57:08 -0500
changeset 225571 b369b09c60baa6f692abe2fce83a9982177c483a
parent 225570 2c4faddcc7e77fe59aef561cbffba97d89d4c423
child 225572 a0b310e324a3fd8938a92c32b3aa18506d0ae48a
push id28167
push userryanvm@gmail.com
push dateSun, 25 Jan 2015 00:24:46 +0000
treeherdermozilla-central@c18776175a69 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs1125182
milestone38.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 1125182 - Mark some functions in nsCompartmentInfo as override; r=blassey
toolkit/components/aboutcompartments/nsCompartmentInfo.cpp
--- a/toolkit/components/aboutcompartments/nsCompartmentInfo.cpp
+++ b/toolkit/components/aboutcompartments/nsCompartmentInfo.cpp
@@ -17,34 +17,34 @@ class nsCompartment : public nsICompartm
 public:
   nsCompartment(nsAString& aCompartmentName, nsAString& aAddonId,
                 uint64_t aTime, uint64_t aCPOWTime)
     : mCompartmentName(aCompartmentName), mAddonId(aAddonId), mTime(aTime), mCPOWTime(aCPOWTime) {}
 
   NS_DECL_ISUPPORTS
 
   /* readonly attribute wstring compartmentName; */
-  NS_IMETHOD GetCompartmentName(nsAString& aCompartmentName){
+  NS_IMETHOD GetCompartmentName(nsAString& aCompartmentName) MOZ_OVERRIDE {
     aCompartmentName.Assign(mCompartmentName);
     return NS_OK;
   };
 
   /* readonly attribute unsigned long time; */
-  NS_IMETHOD GetTime(uint64_t* aTime) {
+  NS_IMETHOD GetTime(uint64_t* aTime) MOZ_OVERRIDE {
     *aTime = mTime;
     return NS_OK;
   }
   /* readonly attribute wstring addon id; */
-  NS_IMETHOD GetAddonId(nsAString& aAddonId){
+  NS_IMETHOD GetAddonId(nsAString& aAddonId) MOZ_OVERRIDE {
     aAddonId.Assign(mAddonId);
     return NS_OK;
   };
 
   /* readonly attribute unsigned long CPOW time; */
-  NS_IMETHOD GetCPOWTime(uint64_t* aCPOWTime) {
+  NS_IMETHOD GetCPOWTime(uint64_t* aCPOWTime) MOZ_OVERRIDE {
     *aCPOWTime = mCPOWTime;
     return NS_OK;
   }
 
 private:
   nsString mCompartmentName;
   nsString mAddonId;
   uint64_t mTime;