Bug 1091626 - Mark TVSourceListener as final; r=seanlin
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 31 Oct 2014 10:42:29 -0400
changeset 213407 8cc914e0502e265b8c5cda123f91ba0a25d162a2
parent 213406 3440b023856c9fb88b1525910744e41a3ff60804
child 213408 aede4ed28fd05e30a1fc25c4ad1f440fee935cc1
push id27748
push userryanvm@gmail.com
push dateFri, 31 Oct 2014 20:14:33 +0000
treeherdermozilla-central@12ac66e2c016 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersseanlin
bugs1091626
milestone36.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 1091626 - Mark TVSourceListener as final; r=seanlin This avoids compiler warnings when deleting this object since its destructor is not virtual.
dom/tv/TVListeners.h
--- a/dom/tv/TVListeners.h
+++ b/dom/tv/TVListeners.h
@@ -10,17 +10,17 @@
 #include "mozilla/dom/TVSource.h"
 #include "nsCycleCollectionParticipant.h"
 #include "nsITVService.h"
 #include "nsTArray.h"
 
 namespace mozilla {
 namespace dom {
 
-class TVSourceListener : public nsITVSourceListener
+class TVSourceListener MOZ_FINAL : public nsITVSourceListener
 {
 public:
   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
   NS_DECL_CYCLE_COLLECTION_CLASS(TVSourceListener)
   NS_DECL_NSITVSOURCELISTENER
 
   void RegisterSource(TVSource* aSource);