From 696de1ea79fcb2c765dc74fa009f0cb8b9e9babf Mon Sep 17 00:00:00 2001 From: av-dx Date: Fri, 2 Jul 2021 21:40:33 +0530 Subject: [PATCH] GUI: Made few functions purely virtual --- gui/launcher-dialog.cpp | 5 ----- gui/launcher-dialog.h | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/gui/launcher-dialog.cpp b/gui/launcher-dialog.cpp index b4564740487..cb01076e367 100644 --- a/gui/launcher-dialog.cpp +++ b/gui/launcher-dialog.cpp @@ -414,11 +414,6 @@ void LauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat } } -void LauncherDialog::updateListing() {} -void LauncherDialog::updateButtons() {} -void LauncherDialog::selectTarget(const Common::String &target) {} -int LauncherDialog::getSelected() { return 0; } - #ifndef DISABLE_LAUNCHERDISPLAY_GRID void LauncherDialog::addChooserButtons() { if (_listButton) { diff --git a/gui/launcher-dialog.h b/gui/launcher-dialog.h index a3ad563e3f5..5cdd249193c 100644 --- a/gui/launcher-dialog.h +++ b/gui/launcher-dialog.h @@ -113,9 +113,9 @@ protected: * Fill the list widget with all currently configured targets, and trigger * a redraw. */ - virtual void updateListing(); + virtual void updateListing() = 0; - virtual void updateButtons(); + virtual void updateButtons() = 0; virtual void build(); void clean(); @@ -155,9 +155,9 @@ protected: * * @target name of target to select */ - virtual void selectTarget(const String &target); + virtual void selectTarget(const String &target) = 0; - virtual int getSelected(); + virtual int getSelected() = 0; private: bool checkModifier(int modifier);