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 id11962
push userrespindola@mozilla.com
push dateSun, 15 Jul 2012 15:14:05 +0000
treeherdermozilla-inbound@f06d25578bdc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjustin
bugs774015
milestone16.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 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