Use default constructor, destructor

This commit is contained in:
Chocobo1
2023-05-05 01:57:01 +08:00
parent 3fbe380582
commit 8219b1f695
20 changed files with 15 additions and 46 deletions

View File

@@ -49,7 +49,7 @@ namespace RSS
class AutoDownloadRule
{
public:
explicit AutoDownloadRule(const QString &name = u""_qs);
explicit AutoDownloadRule(const QString &name = {});
AutoDownloadRule(const AutoDownloadRule &other);
~AutoDownloadRule();
@@ -96,7 +96,7 @@ namespace RSS
friend bool operator==(const AutoDownloadRule &left, const AutoDownloadRule &right);
QJsonObject toJsonObject() const;
static AutoDownloadRule fromJsonObject(const QJsonObject &jsonObj, const QString &name = u""_qs);
static AutoDownloadRule fromJsonObject(const QJsonObject &jsonObj, const QString &name = {});
QVariantHash toLegacyDict() const;
static AutoDownloadRule fromLegacyDict(const QVariantHash &dict);