CppTools: Make create* methods return something

Change-Id: I20cfdaef23e9b7c48c9d3b4f27157e771fd9bc7f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Tobias Hunger
2017-10-27 13:31:11 +02:00
parent a65630ef8c
commit 3529e785c4
3 changed files with 47 additions and 47 deletions

View File

@@ -62,9 +62,8 @@ void CppProjectUpdater::update(const ProjectUpdateInfo &projectUpdateInfo)
this, &CppProjectUpdater::onToolChainRemoved);
// Run the project info generator in a worker thread and continue if that one is finished.
const QFutureInterface<void> &futureInterface = m_futureInterface;
const QFuture<ProjectInfo> future = Utils::runAsync([=]() {
Internal::ProjectInfoGenerator generator(futureInterface, projectUpdateInfo);
Internal::ProjectInfoGenerator generator(m_futureInterface, projectUpdateInfo);
return generator.generate();
});
m_generateFutureWatcher.setFuture(future);