forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user