Fix virtual destructor warnings under dom/file, no bug, blanket r=bz
authorDavid Zbarsky <dzbarsky@gmail.com>
Sat, 28 Jul 2012 17:33:58 -0700
changeset 100831 c92a53bb1cba9c893b88223422e439d450aa2a30
parent 100830 b6ac2095d264ad64b33c733563ae8d9c0f73e96a
child 100832 0dbf799a2371c4cd9178c1d1eeba1b8763fb361d
push idunknown
push userunknown
push dateunknown
reviewersbz
milestone17.0a1
Fix virtual destructor warnings under dom/file, no bug, blanket r=bz
dom/file/ArchiveReader.h
dom/file/ArchiveZipFile.cpp
--- a/dom/file/ArchiveReader.h
+++ b/dom/file/ArchiveReader.h
@@ -10,24 +10,24 @@
 #include "nsIDOMArchiveReader.h"
 #include "nsIJSNativeInitializer.h"
 
 #include "FileCommon.h"
 
 #include "nsCOMArray.h"
 #include "nsIChannel.h"
 #include "nsIDOMFile.h"
-
+#include "mozilla/Attributes.h"
 
 BEGIN_FILE_NAMESPACE
 
 class ArchiveRequest;
 
-class ArchiveReader : public nsIDOMArchiveReader,
-                      public nsIJSNativeInitializer
+class ArchiveReader MOZ_FINAL : public nsIDOMArchiveReader,
+                                public nsIJSNativeInitializer
 {
 public:
   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
 
   NS_DECL_NSIDOMARCHIVEREADER
 
   NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(ArchiveReader,
                                            nsIDOMArchiveReader)
--- a/dom/file/ArchiveZipFile.cpp
+++ b/dom/file/ArchiveZipFile.cpp
@@ -4,24 +4,25 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "ArchiveZipFile.h"
 #include "ArchiveZipEvent.h"
 
 #include "nsIInputStream.h"
 #include "zlib.h"
+#include "mozilla/Attributes.h"
 
 USING_FILE_NAMESPACE
 
 #define ZIP_CHUNK 16384
 
 // a internat input stream object
 
-class ArchiveInputStream : public nsIInputStream
+class ArchiveInputStream MOZ_FINAL : public nsIInputStream
 {
 public:
   ArchiveInputStream(ArchiveReader* aReader,
                      nsString& aFilename,
                      PRUint32 aStart,
                      PRUint32 aLength,
                      ZipCentral& aCentral)
   : mArchiveReader(aReader),