Added virtual destructors to classes LocalMapBase and EffectEditorBase.

This commit is contained in:
fstp 2013-06-09 23:08:57 +02:00
parent 48496a644f
commit a3b2a76e60
4 changed files with 10 additions and 1 deletions

View file

@ -34,6 +34,10 @@ namespace MWGui
{ {
} }
LocalMapBase::~LocalMapBase()
{
}
void LocalMapBase::init(MyGUI::ScrollView* widget, MyGUI::ImageBox* compass, OEngine::GUI::Layout* layout, bool mapDragAndDrop) void LocalMapBase::init(MyGUI::ScrollView* widget, MyGUI::ImageBox* compass, OEngine::GUI::Layout* layout, bool mapDragAndDrop)
{ {
mLocalMap = widget; mLocalMap = widget;

View file

@ -14,6 +14,7 @@ namespace MWGui
{ {
public: public:
LocalMapBase(); LocalMapBase();
virtual ~LocalMapBase();
void init(MyGUI::ScrollView* widget, MyGUI::ImageBox* compass, OEngine::GUI::Layout* layout, bool mapDragAndDrop=false); void init(MyGUI::ScrollView* widget, MyGUI::ImageBox* compass, OEngine::GUI::Layout* layout, bool mapDragAndDrop=false);
void setCellPrefix(const std::string& prefix); void setCellPrefix(const std::string& prefix);

View file

@ -416,6 +416,10 @@ namespace MWGui
mAddEffectDialog.setVisible (false); mAddEffectDialog.setVisible (false);
} }
EffectEditorBase::~EffectEditorBase()
{
}
void EffectEditorBase::startEditing () void EffectEditorBase::startEditing ()
{ {
// get the list of magic effects that are known to the player // get the list of magic effects that are known to the player

View file

@ -84,7 +84,7 @@ namespace MWGui
{ {
public: public:
EffectEditorBase(); EffectEditorBase();
virtual ~EffectEditorBase();
protected: protected:
std::map<int, short> mButtonMapping; // maps button ID to effect ID std::map<int, short> mButtonMapping; // maps button ID to effect ID