mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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.
This commit is contained in:
parent
123529e5eb
commit
135a65e200
3 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -559,6 +559,7 @@ struct InventoryAction
|
|||
virtual void serialize(std::ostream &os) const = 0;
|
||||
virtual void apply(InventoryContext *c, InventoryManager *mgr,
|
||||
ServerEnvironment *env) = 0;
|
||||
virtual ~InventoryAction() {};
|
||||
};
|
||||
|
||||
struct IMoveAction : public InventoryAction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue