From fdc83b7f9a77cf998978d22e116e0b2287f30b83 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Tue, 17 Apr 2001 00:50:11 +0000 Subject: [PATCH] get rid of non-virtual dtor with virtual methods warnings. r=saari/sr=hyatt bug 75653 --- gfx/src/mac/nsATSUIUtils.h | 2 +- gfx/src/mac/nsFontMetricsMac.h | 2 +- gfx/src/mac/nsUnicodeRenderingToolkit.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/src/mac/nsATSUIUtils.h b/gfx/src/mac/nsATSUIUtils.h index 6a73e4897ed..497810296eb 100644 --- a/gfx/src/mac/nsATSUIUtils.h +++ b/gfx/src/mac/nsATSUIUtils.h @@ -53,7 +53,7 @@ class nsATSUIToolkit { public: nsATSUIToolkit(); - ~nsATSUIToolkit() {}; + virtual ~nsATSUIToolkit() {}; void PrepareToDraw(GrafPtr aPort, nsIDeviceContext* aContext); diff --git a/gfx/src/mac/nsFontMetricsMac.h b/gfx/src/mac/nsFontMetricsMac.h index 5b2c9b50771..be7f0ff93ec 100644 --- a/gfx/src/mac/nsFontMetricsMac.h +++ b/gfx/src/mac/nsFontMetricsMac.h @@ -39,7 +39,7 @@ class nsFontMetricsMac : public nsIFontMetrics { public: nsFontMetricsMac(); - ~nsFontMetricsMac(); + virtual ~nsFontMetricsMac(); NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW diff --git a/gfx/src/mac/nsUnicodeRenderingToolkit.h b/gfx/src/mac/nsUnicodeRenderingToolkit.h index 2969ed4a3f3..48c8023c39f 100644 --- a/gfx/src/mac/nsUnicodeRenderingToolkit.h +++ b/gfx/src/mac/nsUnicodeRenderingToolkit.h @@ -34,7 +34,7 @@ class nsUnicodeRenderingToolkit { public: nsUnicodeRenderingToolkit() {}; - ~nsUnicodeRenderingToolkit() {}; + virtual ~nsUnicodeRenderingToolkit() {}; NS_IMETHOD PrepareToDraw(float aP2T, nsIDeviceContext* aContext, nsGraphicState* aGS, GrafPtr aPort); NS_IMETHOD GetWidth(const PRUnichar *aString, PRUint32 aLength, nscoord &aWidth,