Use reference whenever possible

This commit is contained in:
Chocobo1 2023-05-05 02:50:19 +08:00
parent 5b43782f58
commit 8c9b6e2f2d
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
12 changed files with 13 additions and 13 deletions

View file

@ -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);