Fix compile errors in gcc/clang.

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

View File

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

View File

@ -32,7 +32,7 @@ class AboutDialog : public Dialog
public:
AboutDialog(OSystem& osystem, DialogContainer& parent,
const GUI::Font& font);
virtual ~AboutDialog() = default;
virtual ~AboutDialog();
private:
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)
: Dialog(osystem, parent, font, "What's New in Stella " + string(STELLA_VERSION) + "?")
{
const int lineHeight = _font.getLineHeight(),
fontHeight = _font.getFontHeight(),
const int fontHeight = _font.getFontHeight(),
fontWidth = _font.getMaxCharWidth(),
buttonHeight = _font.getLineHeight() * 1.25;
const int VGAP = fontHeight / 4;