mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
44a3c189aa
commit
3868ab3810
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user