Skip to content

Commit

Permalink
UI: Fix some virtual override warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Dec 4, 2017
1 parent f607f41 commit 20c9d0e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions UI/ComboKeyMappingScreen.h
Expand Up @@ -29,8 +29,8 @@ class Combo_keyScreen : public UIDialogScreenWithBackground {
public:
Combo_keyScreen(int *key): mode(key) {}

virtual void CreateViews();
virtual void onFinish(DialogResult result);
void CreateViews() override;
void onFinish(DialogResult result) override;
UI::EventReturn onCombo(UI::EventParams &e);
private:
std::map<std::string, bool*> keyToggles;
Expand Down
4 changes: 2 additions & 2 deletions UI/CwCheatScreen.h
Expand Up @@ -39,9 +39,9 @@ class CwCheatScreen : public UIDialogScreenWithBackground {
UI::EventReturn OnEditCheatFile(UI::EventParams &params);
UI::EventReturn OnEnableAll(UI::EventParams &params);

virtual void onFinish(DialogResult result);
void onFinish(DialogResult result) override;
protected:
virtual void CreateViews();
void CreateViews() override;

private:
UI::EventReturn OnCheckBox(UI::EventParams &params);
Expand Down
2 changes: 1 addition & 1 deletion UI/DevScreens.h
Expand Up @@ -87,7 +87,7 @@ class LogLevelScreen : public ListPopupScreen {
class SystemInfoScreen : public UIDialogScreenWithBackground {
public:
SystemInfoScreen() {}
virtual void CreateViews();
void CreateViews() override;
};

class AddressPromptScreen : public PopupScreen {
Expand Down
4 changes: 2 additions & 2 deletions UI/GameScreen.h
Expand Up @@ -33,12 +33,12 @@ class GameScreen : public UIDialogScreenWithGameBackground {
GameScreen(const std::string &gamePath);
~GameScreen();

virtual void update();
void update() override;

std::string tag() const override { return "game"; }

protected:
virtual void CreateViews();
void CreateViews() override;
void CallbackDeleteConfig(bool yes);
void CallbackDeleteSaveData(bool yes);
void CallbackDeleteGame(bool yes);
Expand Down
12 changes: 6 additions & 6 deletions UI/GameSettingsScreen.h
Expand Up @@ -28,14 +28,14 @@ class GameSettingsScreen : public UIDialogScreenWithGameBackground {
public:
GameSettingsScreen(std::string gamePath, std::string gameID = "", bool editThenRestore = false);

virtual void update();
virtual void onFinish(DialogResult result);
void update() override;
void onFinish(DialogResult result) override;
std::string tag() const override { return "settings"; }

UI::Event OnRecentChanged;

protected:
virtual void CreateViews();
void CreateViews() override;
void CallbackRestoreDefaults(bool yes);
void CallbackRenderingBackend(bool yes);
bool UseVerticalLayout() const;
Expand Down Expand Up @@ -140,10 +140,10 @@ class SettingInfoMessage : public UI::LinearLayout {
class DeveloperToolsScreen : public UIDialogScreenWithBackground {
public:
DeveloperToolsScreen() {}
virtual void onFinish(DialogResult result);
void onFinish(DialogResult result) override;

protected:
virtual void CreateViews();
void CreateViews() override;

private:
UI::EventReturn OnBack(UI::EventParams &e);
Expand All @@ -161,7 +161,7 @@ class ProAdhocServerScreen : public UIDialogScreenWithBackground {
ProAdhocServerScreen() {}

protected:
virtual void CreateViews();
void CreateViews() override;

private:
std::string tempProAdhocServer;
Expand Down
8 changes: 4 additions & 4 deletions UI/TouchControlVisibilityScreen.h
Expand Up @@ -29,14 +29,14 @@ class TouchControlVisibilityScreen : public UIDialogScreenWithBackground {
public:
TouchControlVisibilityScreen() : toggleSwitch(true){ }

virtual void CreateViews();
virtual void onFinish(DialogResult result);
void CreateViews() override;
void onFinish(DialogResult result) override;

protected:
virtual UI::EventReturn OnToggleAll(UI::EventParams &e);
UI::EventReturn OnToggleAll(UI::EventParams &e);

private:
std::map<std::string, bool*> keyToggles;
std::map<std::string, bool *> keyToggles;
bool toggleSwitch;

class ChoiceEventHandler{
Expand Down

0 comments on commit 20c9d0e

Please sign in to comment.