Fix virtual destructor warnings in dom/camera, no bug, blanket r=bz
authorDavid Zbarsky <dzbarsky@gmail.com>
Tue, 31 Jul 2012 14:30:53 -0700
changeset 106508 481bad76c16981235ae8a34f6f7c677a1e8a1408
parent 106507 242dab03e447d93d3c57529c5b2d9df32bb8d077
child 106509 87736e458d15d5a08dd8ad399bd06516bbf62d41
push idunknown
push userunknown
push dateunknown
reviewersbz
milestone17.0a1
Fix virtual destructor warnings in dom/camera, no bug, blanket r=bz
dom/camera/CameraCapabilities.h
dom/camera/DOMCameraManager.h
--- a/dom/camera/CameraCapabilities.h
+++ b/dom/camera/CameraCapabilities.h
@@ -2,22 +2,23 @@
  * 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/. */
 
 #ifndef DOM_CAMERA_NSCAMERACAPABILITIES_H
 #define DOM_CAMERA_NSCAMERACAPABILITIES_H
 
 #include "CameraControl.h"
 #include "nsAutoPtr.h"
+#include "mozilla/Attributes.h"
 
 namespace mozilla {
 
 typedef nsresult (*ParseItemAndAddFunc)(JSContext* aCx, JSObject* aArray, PRUint32 aIndex, const char* aStart, char** aEnd);
 
-class nsCameraCapabilities : public nsICameraCapabilities
+class nsCameraCapabilities MOZ_FINAL : public nsICameraCapabilities
 {
 public:
   NS_DECL_ISUPPORTS
   NS_DECL_NSICAMERACAPABILITIES
 
   nsCameraCapabilities(nsCameraControl* aCamera);
 
   nsresult ParameterListToNewArray(
--- a/dom/camera/DOMCameraManager.h
+++ b/dom/camera/DOMCameraManager.h
@@ -7,18 +7,19 @@
 #ifndef DOM_CAMERA_DOMCAMERAMANAGER_H
 #define DOM_CAMERA_DOMCAMERAMANAGER_H
 
 #include "nsCOMPtr.h"
 #include "nsAutoPtr.h"
 #include "nsIThread.h"
 #include "nsThreadUtils.h"
 #include "nsIDOMCameraManager.h"
+#include "mozilla/Attributes.h"
 
-class nsDOMCameraManager : public nsIDOMCameraManager
+class nsDOMCameraManager MOZ_FINAL : public nsIDOMCameraManager
 {
 public:
   NS_DECL_ISUPPORTS
   NS_DECL_NSIDOMCAMERAMANAGER
 
   static already_AddRefed<nsDOMCameraManager> Create(PRUint64 aWindowId);
 
   void OnNavigation(PRUint64 aWindowId);