From 08a0931c1fdf930274ff31571bfb927f9500d150 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 25 Feb 2019 13:33:16 +0100 Subject: [PATCH] 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 --- src/plugins/autotoolsprojectmanager/autotoolsproject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp index 5f7f4229c20..b41acdb3aa5 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();