Fix warnings from clang.

This commit is contained in:
Stephen Anthony 2019-05-05 11:43:31 -02:30
parent b4e0eb8792
commit 3b108dcdeb
4 changed files with 9 additions and 19 deletions

View File

@ -60,12 +60,12 @@ Dialog::Dialog(OSystem& instance, DialogContainer& parent, const GUI::Font& font
_processCancel(false),
_title(title),
_th(0),
_layer(0),
_surface(nullptr),
_tabID(0),
_flags(Widget::FLAG_ENABLED | Widget::FLAG_BORDER | Widget::FLAG_CLEARBG),
_max_w(0),
_max_h(0),
_layer(0)
_max_h(0)
{
setTitle(title);
setDirty();

View File

@ -97,10 +97,13 @@ void R77HelpDialog::loadConfig()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void R77HelpDialog::updateStrings(uInt8 page, uInt8 lines, string& title)
{
// FIXME - this currently isn't used
#if 0
#ifdef BSPF_MACOS
#define ALT_ "Cmd"
#define ALT_ "Cmd"
#else
#define ALT_ "Alt"
#define ALT_ "Alt"
#endif
#endif
int i = 0;

View File

@ -24,23 +24,13 @@
#include "PopUpWidget.hxx"
#include "MessageBox.hxx"
// FIXME - use the R77 define in the final release
// use the '1' define for testing
#if defined(RETRON77)
// #if 1
#include "R77HelpDialog.hxx"
#else
#include "HelpDialog.hxx"
#endif
#include "StellaSettingsDialog.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
StellaSettingsDialog::StellaSettingsDialog(OSystem& osystem, DialogContainer& parent,
const GUI::Font& font, int max_w, int max_h, Menu::AppMode mode)
: Dialog(osystem, parent, font, "Basic settings"),
myMode(mode),
myHelpDialog(nullptr)
myMode(mode)
{
const int VBORDER = 8;
const int HBORDER = 10;

View File

@ -68,9 +68,6 @@ class StellaSettingsDialog : public Dialog
void openHelp();
private:
// advanced settings mode:
ButtonWidget* myAdvancedSettings;
// UI theme
PopUpWidget* myThemePopup;
PopUpWidget* myPositionPopup;