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>
This commit is contained in:
hjk
2019-02-25 13:33:16 +01:00
parent b1c0ecb4a5
commit 08a0931c1f

View File

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