Bug 774015 - Fix -Wdelete-non-virtual-dtor warning. r=justin.lebar
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Sun, 15 Jul 2012 11:13:15 -0400
changeset 99365 f06d25578bdc8b09753adaaca796996c4b791d19
parent 99364 1fd41677351a97b880262a3c1c51394e239d955d
child 99366 5a89db18c245d26a87bf34ab4ac1813d0981219c
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjustin.lebar
bugs774015
milestone16.0a1
Bug 774015 - Fix -Wdelete-non-virtual-dtor warning. r=justin.lebar
hal/HalWakeLock.cpp
--- a/hal/HalWakeLock.cpp
+++ b/hal/HalWakeLock.cpp
@@ -41,17 +41,17 @@ struct LockCount {
 }
 
 static int sActiveChildren = 0;
 static nsAutoPtr<nsDataHashtable<nsStringHashKey, LockCount> > sLockTable;
 static bool sInitialized = false;
 static bool sIsShuttingDown = false;
 
 namespace {
-class ClearHashtableOnShutdown : public nsIObserver {
+class ClearHashtableOnShutdown MOZ_FINAL : public nsIObserver {
 public:
   NS_DECL_ISUPPORTS
   NS_DECL_NSIOBSERVER
 };
 
 NS_IMPL_ISUPPORTS1(ClearHashtableOnShutdown, nsIObserver)
 
 NS_IMETHODIMP