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: public:
Actor(); Actor();
virtual ~Actor() { }
enum TweenType { enum TweenType {
TWEEN_LINEAR, TWEEN_LINEAR,
+1 -1
View File
@@ -22,9 +22,9 @@ class ActorFrame : public Actor
protected: protected:
CArray<Actor*,Actor*> m_SubActors; CArray<Actor*,Actor*> m_SubActors;
public: public:
void AddSubActor( Actor* pActor); void AddSubActor( Actor* pActor);
virtual ~ActorFrame() { }
virtual void Update( float fDeltaTime ); virtual void Update( float fDeltaTime );
virtual void DrawPrimitives(); virtual void DrawPrimitives();
+1 -1
View File
@@ -24,7 +24,7 @@ protected:
public: public:
BitmapText(); BitmapText();
~BitmapText(); virtual ~BitmapText();
bool LoadFromFont( CString sFontName ); bool LoadFromFont( CString sFontName );
+1
View File
@@ -19,6 +19,7 @@ class CroppedSprite : public Sprite
{ {
public: public:
CroppedSprite(); CroppedSprite();
virtual ~CroppedSprite() { }
bool Load( CString sFilePath, bool bForceReload = false, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, bool bStretch = false ); 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 ); void SetCroppedSize( float fWidth, float fHeight );
+1 -1
View File
@@ -32,7 +32,7 @@ public:
bool bDither = false, bool bDither = false,
bool bStretch = false bool bStretch = false
); );
~RageBitmapTexture(); virtual ~RageBitmapTexture();
virtual void Reload( virtual void Reload(
DWORD dwMaxSize, DWORD dwMaxSize,