mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Use reference whenever possible
This commit is contained in:
@@ -149,7 +149,7 @@ void AppController::preferencesAction()
|
||||
QJsonObject nativeDirs;
|
||||
for (auto i = watchedFolders.cbegin(); i != watchedFolders.cend(); ++i)
|
||||
{
|
||||
const Path watchedFolder = i.key();
|
||||
const Path &watchedFolder = i.key();
|
||||
const BitTorrent::AddTorrentParams params = i.value().addTorrentParams;
|
||||
if (params.savePath.isEmpty())
|
||||
nativeDirs.insert(watchedFolder.toString(), 1);
|
||||
|
||||
Reference in New Issue
Block a user