mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 15:42:32 -06:00
Clean up code
* Use compiler generated comparison function * Use designated initializers * Convert to proper type * Use reference * Remove redundant text The `msg` already contain the text `Reason:` so it isn't needed. PR #20312.
This commit is contained in:
@@ -69,9 +69,9 @@ namespace BitTorrent
|
||||
int seedingTimeLimit = Torrent::USE_GLOBAL_SEEDING_TIME;
|
||||
int inactiveSeedingTimeLimit = Torrent::USE_GLOBAL_INACTIVE_SEEDING_TIME;
|
||||
qreal ratioLimit = Torrent::USE_GLOBAL_RATIO;
|
||||
};
|
||||
|
||||
bool operator==(const AddTorrentParams &lhs, const AddTorrentParams &rhs);
|
||||
friend bool operator==(const AddTorrentParams &lhs, const AddTorrentParams &rhs) = default;
|
||||
};
|
||||
|
||||
AddTorrentParams parseAddTorrentParams(const QJsonObject &jsonObj);
|
||||
QJsonObject serializeAddTorrentParams(const AddTorrentParams ¶ms);
|
||||
|
||||
Reference in New Issue
Block a user