class with virtual members must always have a virtual dtor

(actually, any class that will be derived from should)
This commit is contained in:
Glenn Maynard
2002-08-23 08:30:10 +00:00
parent 0276234c56
commit 587440ab8e
5 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -19,8 +19,7 @@ class Actor
{
public:
Actor();
virtual ~Actor() { }
enum TweenType {
TWEEN_LINEAR,
+1 -1
View File
@@ -22,9 +22,9 @@ class ActorFrame : public Actor
protected:
CArray<Actor*,Actor*> m_SubActors;
public:
void AddSubActor( Actor* pActor);
virtual ~ActorFrame() { }
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
+1 -1
View File
@@ -24,7 +24,7 @@ protected:
public:
BitmapText();
~BitmapText();
virtual ~BitmapText();
bool LoadFromFont( CString sFontName );
+1
View File
@@ -19,6 +19,7 @@ class CroppedSprite : public Sprite
{
public:
CroppedSprite();
virtual ~CroppedSprite() { }
bool Load( CString sFilePath, bool bForceReload = false, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, bool bStretch = false );
void SetCroppedSize( float fWidth, float fHeight );
+1 -1
View File
@@ -32,7 +32,7 @@ public:
bool bDither = false,
bool bStretch = false
);
~RageBitmapTexture();
virtual ~RageBitmapTexture();
virtual void Reload(
DWORD dwMaxSize,