Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (more xpcom and gonk parts); r=jrmuizel

This commit is contained in:
Ehsan Akhgari
2012-06-19 23:41:56 -04:00
parent 7963619b25
commit 2f3ae6ae0c
11 changed files with 28 additions and 14 deletions

View File

@@ -14,6 +14,7 @@
#include "nsThreadUtils.h"
#include "prinrval.h"
#include "prmon.h"
#include "mozilla/Attributes.h"
#include "mozilla/ReentrantMonitor.h"
using namespace mozilla;
@@ -68,7 +69,7 @@ private:
ReentrantMonitor* mReentrantMonitor;
};
class TimerCallback : public nsITimerCallback
class TimerCallback MOZ_FINAL : public nsITimerCallback
{
public:
NS_DECL_ISUPPORTS