mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
Give better name to parameter checking function
This function will throw exceptions if the required parameters do not exsit hence a stronger word is more appropriate here. Also change the function parameter type to QVector. We don't need the duplicate entries checking as currently we only use 3 fields at max and can be easily checked by hand. So drop back to QVector which can be constructed more efficiently.
This commit is contained in:
@@ -30,8 +30,8 @@
|
||||
|
||||
#include <QHash>
|
||||
#include <QObject>
|
||||
#include <QSet>
|
||||
#include <QVariant>
|
||||
#include <QVector>
|
||||
|
||||
class QString;
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
protected:
|
||||
const StringMap ¶ms() const;
|
||||
const DataMap &data() const;
|
||||
void checkParams(const QSet<QString> &requiredParams) const;
|
||||
void requireParams(const QVector<QString> &requiredParams) const;
|
||||
|
||||
void setResult(const QString &result);
|
||||
void setResult(const QJsonArray &result);
|
||||
|
||||
Reference in New Issue
Block a user