Bug 1119257 - Mark virtual overridden functions as MOZ_OVERRIDE in rdf; r=bsmedberg
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 08 Jan 2015 10:13:50 -0500
changeset 223398 e381d48c24353d9c0af822f977c331dab48ddd6e
parent 223397 e478d4d1d17ce94c8a74324b04f0b212fa51504a
child 223399 4a0cf4b46f9e7c53437dacef776de06c5108b2c9
push id28091
push userkwierso@gmail.com
push dateTue, 13 Jan 2015 03:33:36 +0000
treeherdermozilla-central@6485d16e2d79 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs1119257
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 1119257 - Mark virtual overridden functions as MOZ_OVERRIDE in rdf; r=bsmedberg
rdf/tests/rdfcat/rdfcat.cpp
rdf/tests/triplescat/triplescat.cpp
--- a/rdf/tests/rdfcat/rdfcat.cpp
+++ b/rdf/tests/rdfcat/rdfcat.cpp
@@ -61,45 +61,45 @@ protected:
 
 public:
     ConsoleOutputStreamImpl(void) {}
 
     // nsISupports interface
     NS_DECL_ISUPPORTS
 
     // nsIOutputStream interface
-    NS_IMETHOD Close(void) {
+    NS_IMETHOD Close(void) MOZ_OVERRIDE {
         return NS_OK;
     }
 
-    NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) {
+    NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) MOZ_OVERRIDE {
         PR_Write(PR_GetSpecialFD(PR_StandardOutput), aBuf, aCount);
         *aWriteCount = aCount;
         return NS_OK;
     }
 
     NS_IMETHOD
-    WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) {
+    WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
         NS_NOTREACHED("WriteFrom");
         return NS_ERROR_NOT_IMPLEMENTED;
     }
 
     NS_IMETHOD
-    WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) {
+    WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
         NS_NOTREACHED("WriteSegments");
         return NS_ERROR_NOT_IMPLEMENTED;
     }
 
     NS_IMETHOD
-    IsNonBlocking(bool *aNonBlocking) {
+    IsNonBlocking(bool *aNonBlocking) MOZ_OVERRIDE {
         NS_NOTREACHED("IsNonBlocking");
         return NS_ERROR_NOT_IMPLEMENTED;
     }
 
-    NS_IMETHOD Flush(void) {
+    NS_IMETHOD Flush(void) MOZ_OVERRIDE {
         PR_Sync(PR_GetSpecialFD(PR_StandardOutput));
         return NS_OK;
     }
 };
 
 NS_IMPL_ISUPPORTS(ConsoleOutputStreamImpl, nsIOutputStream)
 
 ////////////////////////////////////////////////////////////////////////
--- a/rdf/tests/triplescat/triplescat.cpp
+++ b/rdf/tests/triplescat/triplescat.cpp
@@ -59,45 +59,45 @@ protected:
 
 public:
     ConsoleOutputStreamImpl(void) {}
 
     // nsISupports interface
     NS_DECL_ISUPPORTS
 
     // nsIOutputStream interface
-    NS_IMETHOD Close(void) {
+    NS_IMETHOD Close(void) MOZ_OVERRIDE {
         return NS_OK;
     }
 
-    NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) {
+    NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) MOZ_OVERRIDE {
         PR_Write(PR_GetSpecialFD(PR_StandardOutput), aBuf, aCount);
         *aWriteCount = aCount;
         return NS_OK;
     }
 
     NS_IMETHOD
-    WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) {
+    WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
         NS_NOTREACHED("WriteFrom");
         return NS_ERROR_NOT_IMPLEMENTED;
     }
 
     NS_IMETHOD
-    WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) {
+    WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
         NS_NOTREACHED("WriteSegments");
         return NS_ERROR_NOT_IMPLEMENTED;
     }
 
     NS_IMETHOD
-    IsNonBlocking(bool *aNonBlocking) {
+    IsNonBlocking(bool *aNonBlocking) MOZ_OVERRIDE {
         NS_NOTREACHED("IsNonBlocking");
         return NS_ERROR_NOT_IMPLEMENTED;
     }
 
-    NS_IMETHOD Flush(void) {
+    NS_IMETHOD Flush(void) MOZ_OVERRIDE {
         PR_Sync(PR_GetSpecialFD(PR_StandardOutput));
         return NS_OK;
     }
 };
 
 NS_IMPL_ISUPPORTS(ConsoleOutputStreamImpl, nsIOutputStream)
 
 ////////////////////////////////////////////////////////////////////////