From 13bac238a832b1626f85c3f7486a153ffc9b08bd Mon Sep 17 00:00:00 2001 From: "michaelp%netscape.com" Date: Tue, 30 Mar 1999 01:41:13 +0000 Subject: [PATCH] added virtual destructors where necessary as pointed out by bruce@cybersight.com. --- gfx/src/nsImageGroup.cpp | 2 +- gfx/src/nsImageNetContextAsync.cpp | 4 ++-- gfx/src/nsImageNetContextSync.cpp | 2 +- gfx/src/nsImageRequest.h | 2 +- gfx/src/nsImageSystemServices.cpp | 2 +- gfx/src/nsImageURL.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gfx/src/nsImageGroup.cpp b/gfx/src/nsImageGroup.cpp index 224281f87201..eb5bebfe8735 100644 --- a/gfx/src/nsImageGroup.cpp +++ b/gfx/src/nsImageGroup.cpp @@ -42,7 +42,7 @@ class ImageGroupImpl : public nsIImageGroup { public: ImageGroupImpl(nsIImageManager *aManager); - ~ImageGroupImpl(); + virtual ~ImageGroupImpl(); nsresult Init(nsIDeviceContext *aDeviceContext, nsIURLGroup* aURLGroup); diff --git a/gfx/src/nsImageNetContextAsync.cpp b/gfx/src/nsImageNetContextAsync.cpp index 7fc2c7740e5c..93b6dcd62050 100644 --- a/gfx/src/nsImageNetContextAsync.cpp +++ b/gfx/src/nsImageNetContextAsync.cpp @@ -49,7 +49,7 @@ public: nsIURLGroup* aURLGroup, nsReconnectCB aReconnectCallback, void* aReconnectArg); - ~ImageNetContextImpl(); + virtual ~ImageNetContextImpl(); NS_DECL_ISUPPORTS @@ -104,7 +104,7 @@ public: static void KeepPumpingStream(nsITimer *aTimer, void *aClosure); protected: - ~ImageConsumer(); + virtual ~ImageConsumer(); ilIURL *mURL; PRBool mInterrupted; ImageNetContextImpl *mContext; diff --git a/gfx/src/nsImageNetContextSync.cpp b/gfx/src/nsImageNetContextSync.cpp index 57d882cff16a..f0543c132348 100644 --- a/gfx/src/nsImageNetContextSync.cpp +++ b/gfx/src/nsImageNetContextSync.cpp @@ -37,7 +37,7 @@ static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID); class ImageNetContextSyncImpl : public ilINetContext { public: ImageNetContextSyncImpl(NET_ReloadMethod aReloadPolicy); - ~ImageNetContextSyncImpl(); + virtual ~ImageNetContextSyncImpl(); NS_DECL_ISUPPORTS diff --git a/gfx/src/nsImageRequest.h b/gfx/src/nsImageRequest.h index 3170f758056b..d85a5f5ac0d6 100644 --- a/gfx/src/nsImageRequest.h +++ b/gfx/src/nsImageRequest.h @@ -31,7 +31,7 @@ class ilINetContext; class ImageRequestImpl : public nsIImageRequest { public: ImageRequestImpl(); - ~ImageRequestImpl(); + virtual ~ImageRequestImpl(); nsresult Init(IL_GroupContext *aGroupContext, const char* aUrl, nsIImageRequestObserver *aObserver, diff --git a/gfx/src/nsImageSystemServices.cpp b/gfx/src/nsImageSystemServices.cpp index 205271238bbe..b8b466ac3b88 100644 --- a/gfx/src/nsImageSystemServices.cpp +++ b/gfx/src/nsImageSystemServices.cpp @@ -29,7 +29,7 @@ public: static ImageSystemServicesImpl *sSS; ImageSystemServicesImpl(); - ~ImageSystemServicesImpl(); + virtual ~ImageSystemServicesImpl(); NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW diff --git a/gfx/src/nsImageURL.cpp b/gfx/src/nsImageURL.cpp index eacc2f42381f..deff1cfc06dc 100644 --- a/gfx/src/nsImageURL.cpp +++ b/gfx/src/nsImageURL.cpp @@ -33,7 +33,7 @@ static NS_DEFINE_IID(kIImageURLIID, IL_IURL_IID); class ImageURLImpl : public ilIURL { public: ImageURLImpl(void); - ~ImageURLImpl(); + virtual ~ImageURLImpl(); NS_DECL_ISUPPORTS