Fix compile errors in gcc/clang.

This commit is contained in:
Stephen Anthony 2020-07-29 13:19:43 -02:30
parent ea90ec84aa
commit af6f7a5ef4
3 changed files with 7 additions and 3 deletions

View File

@ -89,6 +89,11 @@ AboutDialog::AboutDialog(OSystem& osystem, DialogContainer& parent,
addToFocusList(wid); addToFocusList(wid);
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AboutDialog::~AboutDialog()
{
}
// The following commands can be put at the start of a line (all subject to change): // The following commands can be put at the start of a line (all subject to change):
// \C, \L, \R -- set center/left/right alignment // \C, \L, \R -- set center/left/right alignment
// \c0 - \c5 -- set a custom color: // \c0 - \c5 -- set a custom color:

View File

@ -32,7 +32,7 @@ class AboutDialog : public Dialog
public: public:
AboutDialog(OSystem& osystem, DialogContainer& parent, AboutDialog(OSystem& osystem, DialogContainer& parent,
const GUI::Font& font); const GUI::Font& font);
virtual ~AboutDialog() = default; virtual ~AboutDialog();
private: private:
void handleCommand(CommandSender* sender, int cmd, int data, int id) override; void handleCommand(CommandSender* sender, int cmd, int data, int id) override;

View File

@ -26,8 +26,7 @@ WhatsNewDialog::WhatsNewDialog(OSystem& osystem, DialogContainer& parent, const
int max_w, int max_h) int max_w, int max_h)
: Dialog(osystem, parent, font, "What's New in Stella " + string(STELLA_VERSION) + "?") : Dialog(osystem, parent, font, "What's New in Stella " + string(STELLA_VERSION) + "?")
{ {
const int lineHeight = _font.getLineHeight(), const int fontHeight = _font.getFontHeight(),
fontHeight = _font.getFontHeight(),
fontWidth = _font.getMaxCharWidth(), fontWidth = _font.getMaxCharWidth(),
buttonHeight = _font.getLineHeight() * 1.25; buttonHeight = _font.getLineHeight() * 1.25;
const int VGAP = fontHeight / 4; const int VGAP = fontHeight / 4;