Skip to content
Snippets Groups Projects
Commit 135a65e2 authored by Giuseppe Bilotta's avatar Giuseppe Bilotta Committed by Perttu Ahola
Browse files

Add virtual destructors to abstract classes

IRespawnInitiator and InventoryActions are abstract classes, but they
were missing a virtual destructor. Define it, even if it does nothing
and its absence most likely makes no difference other tha causing
warnings during compile.
parent 123529e5
Branches
Tags
No related merge requests found
......@@ -29,6 +29,7 @@ class IRespawnInitiator
{
public:
virtual void respawn() = 0;
virtual ~IRespawnInitiator() {};
};
class GUIDeathScreen : public GUIModalMenu
......
......@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
struct TextDest
{
virtual void gotText(std::wstring text) = 0;
virtual ~TextDest() {};
};
class GUITextInputMenu : public GUIModalMenu
......
......@@ -554,11 +554,12 @@ class InventoryManager
struct InventoryAction
{
static InventoryAction * deSerialize(std::istream &is);
virtual u16 getType() const = 0;
virtual void serialize(std::ostream &os) const = 0;
virtual void apply(InventoryContext *c, InventoryManager *mgr,
ServerEnvironment *env) = 0;
virtual ~InventoryAction() {};
};
struct IMoveAction : public InventoryAction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment