Fix compile error in clang; something to do with unique_ptr can't have default d'tor.

This commit is contained in:
Stephen Anthony 2018-08-17 16:31:05 -02:30
parent 13c616c4c8
commit c05fa1989f
2 changed files with 7 additions and 2 deletions

View File

@ -38,7 +38,7 @@
UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent, UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent,
const GUI::Font& font) const GUI::Font& font)
: Dialog(osystem, parent, font, "User interface settings"), : Dialog(osystem, parent, font, "User interface settings"),
myFont(font) myFont(font)
{ {
const GUI::Font& ifont = instance().frameBuffer().infoFont(); const GUI::Font& ifont = instance().frameBuffer().infoFont();
const int lineHeight = font.getLineHeight(), const int lineHeight = font.getLineHeight(),
@ -195,6 +195,11 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent,
addBGroupToFocusList(wid); addBGroupToFocusList(wid);
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UIDialog::~UIDialog()
{
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void UIDialog::loadConfig() void UIDialog::loadConfig()
{ {

View File

@ -35,7 +35,7 @@ class UIDialog : public Dialog
{ {
public: public:
UIDialog(OSystem& osystem, DialogContainer& parent, const GUI::Font& font); UIDialog(OSystem& osystem, DialogContainer& parent, const GUI::Font& font);
virtual ~UIDialog() = default; virtual ~UIDialog();
private: private:
void loadConfig() override; void loadConfig() override;