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

@@ -7,6 +7,7 @@
#include "nsIPipe.h"
#include "nsIMemory.h"
#include "mozilla/Attributes.h"
/** NS_NewPipe2 reimplemented, because it's not exported by XPCOM */
nsresult TP_NewPipe2(nsIAsyncInputStream** input,
@@ -41,7 +42,7 @@ nsresult TP_NewPipe2(nsIAsyncInputStream** input,
* which <size>-byte locations in mMemory are empty and which are filled.
* Pretty stupid, but enough to test bug 394692.
*/
class BackwardsAllocator : public nsIMemory
class BackwardsAllocator MOZ_FINAL : public nsIMemory
{
public:
BackwardsAllocator()