mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Convert vars into refs to avoid copy construction from const refs
This commit is contained in:
parent
400792d18e
commit
92a290895b
3 changed files with 4 additions and 4 deletions
|
@ -329,7 +329,7 @@ void AppController::setPreferencesAction()
|
|||
|
||||
// Update deleted folders
|
||||
for (auto i = oldScanDirs.cbegin(); i != oldScanDirs.cend(); ++i) {
|
||||
const QString folder = i.key();
|
||||
const QString &folder = i.key();
|
||||
if (!scanDirs.contains(folder)) {
|
||||
model->removePath(folder);
|
||||
qDebug("Removed watched folder %s", qUtf8Printable(folder));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue