mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user