mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Const correctness, override keyword, a bunch of stuff..
This commit is contained in:
@@ -30,8 +30,6 @@ public:
|
||||
: Option(other), _switches(switches)
|
||||
{}
|
||||
|
||||
virtual ~SwitchOption() {}
|
||||
|
||||
const QMap<QString, T> &getSwitches() const { return _switches; }
|
||||
virtual bool validate(Parser &parser, QString &switch_) override { return hasSwitch(switch_); }
|
||||
bool hasSwitch(const QString &switch_) { return _switches.contains(switch_.toLower()); }
|
||||
|
Reference in New Issue
Block a user