diff options
author | hjk <hjk@qt.io> | 2019-02-25 13:33:16 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-02-25 13:09:44 +0000 |
commit | 08a0931c1fdf930274ff31571bfb927f9500d150 (patch) | |
tree | 535a60890ce84f5380eaeef8ebea4ac059411891 /src/plugins/autotoolsprojectmanager | |
parent | b1c0ecb4a53e7ccf46ba3c5941d51375c9da60cd (diff) |
AutoTools: Use the FileSystemWatcher::removeFiles() bulk functions
It's doing the same one-by-one, with temporary lists.
Change-Id: I63176ab6a9f717adf816493ac132d92e0e248b4c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsproject.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp index 5f7f4229c2..b41acdb3aa 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp @@ -172,8 +172,7 @@ void AutotoolsProject::makefileParsingFinished() // Remove file watches for the current project state. // The file watches will be added again after the parsing. - foreach (const QString& watchedFile, m_watchedFiles) - m_fileWatcher->removeFile(watchedFile); + m_fileWatcher->removeFiles(m_watchedFiles); m_files.clear(); m_watchedFiles.clear(); |