Skip to content

Commit

Permalink
Add virtual destructors to server object interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 8, 2015
1 parent 36b3107 commit 85e68bd
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/xrServerEntities/xrServer_Objects_Abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ class CDUInterface;
#pragma warning(push)
#pragma warning(disable:4005)

class ISE_Shape{
class ISE_Shape
{
public:
virtual void __stdcall assign_shapes (CShapeData::shape_def* shapes, u32 cnt)=0;
virtual ~ISE_Shape() = 0;
virtual void __stdcall assign_shapes (CShapeData::shape_def* shapes, u32 cnt)=0;
};

IC ISE_Shape::~ISE_Shape() {}

class CSE_Visual
{
public:
Expand Down Expand Up @@ -86,10 +90,13 @@ class CSE_Motion
virtual CSE_Motion* __stdcall motion () = 0;
};

struct ISE_AbstractLEOwner{
struct ISE_AbstractLEOwner {
virtual ~ISE_AbstractLEOwner() = 0;
virtual void __stdcall get_bone_xform (LPCSTR name, Fmatrix& xform) = 0;
};

IC ISE_AbstractLEOwner::~ISE_AbstractLEOwner() {}

#pragma pack(push,1)
struct visual_data {
Fmatrix matrix;
Expand All @@ -106,6 +113,9 @@ struct ISE_Abstract {
flMotionChange = u32(1 << 3),
flVisualAnimationPauseChange= u32(1 << 4),
};

virtual ~ISE_Abstract() = 0;

Flags32 m_editor_flags;
IC void set_editor_flag (u32 mask) {m_editor_flags.set (mask,TRUE);}

Expand All @@ -132,6 +142,8 @@ struct ISE_Abstract {
virtual bool __stdcall validate () = 0;
};

IC ISE_Abstract::~ISE_Abstract() {}

#pragma warning(pop)

#pragma pack(pop)
Expand Down

0 comments on commit 85e68bd

Please sign in to comment.