diff options
author | Alessandro Portale <[email protected]> | 2021-02-16 15:01:44 +0100 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2021-02-17 14:45:05 +0000 |
commit | 97a45f7512adddecff12d9f7b10b1fbd7cb853c2 (patch) | |
tree | dffbe5ca5dcd0c1b1d37c1feb7b1fc5b5a8100f7 /src/libs/utils/filesystemwatcher.cpp | |
parent | 72d91dc94af1861c4374dab5698859149b21dbfd (diff) |
Libs: Use qAsConst with non-const Qt containers in range-loops
Change-Id: I00d9f7c1634bbb62191470d58158e1fd150533c0
Reviewed-by: Jarek Kobus <[email protected]>
Diffstat (limited to 'src/libs/utils/filesystemwatcher.cpp')
-rw-r--r-- | src/libs/utils/filesystemwatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/filesystemwatcher.cpp b/src/libs/utils/filesystemwatcher.cpp index 0f83c17203f..3c2890b7b50 100644 --- a/src/libs/utils/filesystemwatcher.cpp +++ b/src/libs/utils/filesystemwatcher.cpp @@ -467,7 +467,7 @@ void FileSystemWatcher::slotDirectoryChanged(const QString &path) toReadd.removeOne(rejected); // If we've successfully added the file, that means it was deleted and replaced. - for (const QString &reAdded : toReadd) + for (const QString &reAdded : qAsConst(toReadd)) d->fileChanged(reAdded); } } |