Fix compile warnings and errors from last commit, detected by clang.

This commit is contained in:
Stephen Anthony 2019-04-27 17:08:58 -02:30
parent 65e6aa7bc0
commit 04304fce32
3 changed files with 4 additions and 6 deletions

View File

@ -55,9 +55,7 @@ LauncherDialog::LauncherDialog(OSystem& osystem, DialogContainer& parent,
myPattern(nullptr),
myAllFiles(nullptr),
myRomInfoWidget(nullptr),
mySelectedItem(0),
myStellaSettingsDialog(nullptr),
myOptionsDialog(nullptr)
mySelectedItem(0)
{
myUseMinimalUI = instance().settings().getBool("minimal_ui");
@ -653,4 +651,4 @@ void LauncherDialog::openSettings()
Menu::AppMode::launcher);
myOptionsDialog->open();
}
}
}

View File

@ -298,7 +298,7 @@ void StellaSettingsDialog::handleCommand(CommandSender* sender, int cmd,
case GuiObject::kOKCmd:
saveConfig();
// falls through
[[fallthrough]];
case GuiObject::kCloseCmd:
if (myMode != Menu::AppMode::emulator)
close();

View File

@ -23,10 +23,10 @@ class PopUpWidget;
#include "Props.hxx"
#include "Menu.hxx"
#include "Dialog.hxx"
#include "MessageBox.hxx"
namespace GUI {
class Font;
class MessageBox;
}
class StellaSettingsDialog : public Dialog