Fix CppModelManager::parse broken in recent commit

Reviewed-by: Friedemann Kleint
This commit is contained in:
dt
2010-02-23 15:54:30 +01:00
parent 8bd54e3618
commit 96e2fef626

View File

@@ -1269,6 +1269,9 @@ void CppModelManager::parse(QFutureInterface<void> &future,
if (files.isEmpty())
return;
foreach (const QString &file, files)
preproc->snapshot.remove(file);
QStringList sources;
QStringList headers;
const Core::MimeDatabase *mimeDb = Core::ICore::instance()->mimeDatabase();
@@ -1278,8 +1281,6 @@ void CppModelManager::parse(QFutureInterface<void> &future,
const int sourceCount = sources.size();
files = sources;
files += headers;
foreach (const QString &file, files)
preproc->snapshot.remove(file);
preproc->setTodo(files);