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 (imagelib parts); r=joedrew

This commit is contained in:
Ehsan Akhgari 2012-06-13 00:16:43 -04:00
parent ff75c88d87
commit bb4d966720

View File

@ -6,6 +6,7 @@
#include "imgIEncoder.h"
#include "mozilla/ReentrantMonitor.h"
#include "mozilla/Attributes.h"
#include "nsCOMPtr.h"
@ -27,7 +28,7 @@ extern "C" {
// Provides JPEG encoding functionality. Use InitFromData() to do the
// encoding. See that function definition for encoding options.
class nsJPEGEncoder : public imgIEncoder
class nsJPEGEncoder MOZ_FINAL : public imgIEncoder
{
typedef mozilla::ReentrantMonitor ReentrantMonitor;
public: