Merge pull request #10220 from thalieht/const

Add const to many vars and arguments
This commit is contained in:
Mike Tzou 2019-02-13 12:11:00 +08:00 committed by GitHub
commit 78ab0e4ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 299 additions and 301 deletions

View file

@ -329,7 +329,7 @@ void AppController::setPreferencesAction()
// Update deleted folders
for (auto i = oldScanDirs.cbegin(); i != oldScanDirs.cend(); ++i) {
QString folder = i.key();
const QString folder = i.key();
if (!scanDirs.contains(folder)) {
model->removePath(folder);
qDebug("Removed watched folder %s", qUtf8Printable(folder));