diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-10-27 13:31:11 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-11-01 14:19:29 +0000 |
commit | 3529e785c463f3db76430d0e0c0fb0c308902cbb (patch) | |
tree | 2525060c5b7ef7448bdba76e4f2cba944726f8e7 /src/plugins/cpptools/cppprojectupdater.cpp | |
parent | a65630ef8cb4c698d8d88b893594914210e813fd (diff) | |
download | qt-creator-3529e785c463f3db76430d0e0c0fb0c308902cbb.tar.gz |
CppTools: Make create* methods return something
Change-Id: I20cfdaef23e9b7c48c9d3b4f27157e771fd9bc7f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppprojectupdater.cpp')
-rw-r--r-- | src/plugins/cpptools/cppprojectupdater.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppprojectupdater.cpp b/src/plugins/cpptools/cppprojectupdater.cpp index 33a2b1df58..50a404664c 100644 --- a/src/plugins/cpptools/cppprojectupdater.cpp +++ b/src/plugins/cpptools/cppprojectupdater.cpp @@ -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); |