Bug 714649. Make ExpirationTrackerObserver final. r=roc

This deals with the warning about virtual destructors and will probably let us
devirtualize the call to ->Destroy()
This commit is contained in:
Jeff Muizelaar 2012-01-02 12:23:00 -05:00
parent 44a3c189aa
commit 3868ab3810

View File

@ -48,6 +48,7 @@
#include "nsIObserver.h"
#include "nsIObserverService.h"
#include "mozilla/Services.h"
#include "mozilla/Attributes.h"
/**
* Data used to track the expiration state of an object. We promise that this
@ -315,7 +316,7 @@ template <class T, PRUint32 K> class nsExpirationTracker {
* Whenever "memory-pressure" is observed, it calls AgeAllGenerations()
* to minimize memory usage.
*/
class ExpirationTrackerObserver : public nsIObserver {
class ExpirationTrackerObserver MOZ_FINAL : public nsIObserver {
public:
void Init(nsExpirationTracker<T,K> *obj) {
mOwner = obj;