mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Use default operators generated/synthesized by compiler
This commit is contained in:
@@ -134,11 +134,6 @@ namespace
|
||||
}
|
||||
};
|
||||
|
||||
bool operator==(const QString &arg, const BoolOption &option)
|
||||
{
|
||||
return (option == arg);
|
||||
}
|
||||
|
||||
// Option with string value. May not have a shortcut
|
||||
struct StringOption : protected Option
|
||||
{
|
||||
@@ -181,11 +176,6 @@ namespace
|
||||
}
|
||||
};
|
||||
|
||||
bool operator==(const QString &arg, const StringOption &option)
|
||||
{
|
||||
return (option == arg);
|
||||
}
|
||||
|
||||
// Option with integer value. May not have a shortcut
|
||||
class IntOption : protected StringOption
|
||||
{
|
||||
@@ -233,11 +223,6 @@ namespace
|
||||
}
|
||||
};
|
||||
|
||||
bool operator==(const QString &arg, const IntOption &option)
|
||||
{
|
||||
return (option == arg);
|
||||
}
|
||||
|
||||
// Option that is explicitly set to true or false, and whose value is undefined when unspecified.
|
||||
// May not have a shortcut.
|
||||
class TriStateBoolOption : protected Option
|
||||
@@ -316,11 +301,6 @@ namespace
|
||||
bool m_defaultValue;
|
||||
};
|
||||
|
||||
bool operator==(const QString &arg, const TriStateBoolOption &option)
|
||||
{
|
||||
return (option == arg);
|
||||
}
|
||||
|
||||
constexpr const BoolOption SHOW_HELP_OPTION {"help", 'h'};
|
||||
constexpr const BoolOption SHOW_VERSION_OPTION {"version", 'v'};
|
||||
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN)
|
||||
|
||||
Reference in New Issue
Block a user