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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user