Skip to content

Commit

Permalink
Fix -Wdelete-non-abstract-non-virtual-dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinara committed Aug 25, 2020
1 parent 5eb74d5 commit a15b066
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions Main/include/GameFailCondition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Scoring;
class GameFailCondition
{
public:
virtual ~GameFailCondition() = default;
enum class Type
{
None, Score, Grade, Miss, MissAndNear, Gauge
Expand Down
1 change: 1 addition & 0 deletions Main/include/PracticeModeSettingsDialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ struct ChartIndex;
class PracticeModeSettingsDialog : public BaseGameSettingsDialog
{
public:
virtual ~PracticeModeSettingsDialog() = default;
PracticeModeSettingsDialog(Game& game, MapTime& lastMapTime,
int32& tempOffset, Game::PlayOptions& playOptions, MapTimeRange& range);
void InitTabs() override;
Expand Down
14 changes: 7 additions & 7 deletions Main/src/SongSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class SelectionWheel
g_application->RemoveTickable(m_owner);
}
}
~SelectionWheel()
virtual ~SelectionWheel()
{
g_gameConfig.Set(GameConfigKeys::LastSelected, m_currentlySelectedMapId);
if (m_lua)
Expand Down Expand Up @@ -1793,7 +1793,7 @@ class SongSelect_Impl : public SongSelect
m_selectionWheel->AdvanceSelection(steps);
}
}
virtual void OnKeyPressed(SDL_Scancode code)
void OnKeyPressed(SDL_Scancode code) override
{
if (m_multiplayer &&
m_multiplayer->GetChatOverlay()->OnKeyPressedConsume(code))
Expand Down Expand Up @@ -1924,10 +1924,10 @@ class SongSelect_Impl : public SongSelect
}
}
}
virtual void OnKeyReleased(SDL_Scancode code)
void OnKeyReleased(SDL_Scancode code) override
{
}
virtual void Tick(float deltaTime) override
void Tick(float deltaTime) override
{
if (m_dbUpdateTimer.Milliseconds() > 500)
{
Expand All @@ -1952,7 +1952,7 @@ class SongSelect_Impl : public SongSelect
m_multiplayer->GetChatOverlay()->Tick(deltaTime);
}

virtual void Render(float deltaTime)
void Render(float deltaTime) override
{
if (m_suspended && m_hasRestored) return;
lua_getglobal(m_lua, "render");
Expand Down Expand Up @@ -2042,7 +2042,7 @@ class SongSelect_Impl : public SongSelect
m_advanceSong -= advanceSongActual;
}

virtual void OnSuspend()
void OnSuspend() override
{
m_lastMapIndex = m_selectionWheel->GetCurrentSongIndex();

Expand All @@ -2052,7 +2052,7 @@ class SongSelect_Impl : public SongSelect
if (m_lockMouse)
m_lockMouse.reset();
}
virtual void OnRestore()
void OnRestore() override
{
g_application->DiscordPresenceMenu("Song Select");
m_suspended = false;
Expand Down

0 comments on commit a15b066

Please sign in to comment.