mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07: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:
parent
bab9c15913
commit
94e80d01a8
7 changed files with 42 additions and 58 deletions
|
@ -754,7 +754,7 @@ void TorrentsController::addAction()
|
|||
}
|
||||
}
|
||||
|
||||
const DataMap torrents = data();
|
||||
const DataMap &torrents = data();
|
||||
for (auto it = torrents.constBegin(); it != torrents.constEnd(); ++it)
|
||||
{
|
||||
if (const auto loadResult = BitTorrent::TorrentDescriptor::load(it.value()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue