mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #624 Use generic lambda to reduce redundancy in relation to CWorker::thenWithResult.
This commit is contained in:
@@ -95,9 +95,9 @@ namespace BlackMisc
|
||||
auto models = performParsing(rootDirectory, excludedDirectories);
|
||||
return models;
|
||||
});
|
||||
m_parserWorker->thenWithResult<CAircraftModelList>(this, [this](const CAircraftModelList & models)
|
||||
m_parserWorker->thenWithResult<CAircraftModelList>(this, [this](const auto & models)
|
||||
{
|
||||
updateInstalledModels(models);
|
||||
this->updateInstalledModels(models);
|
||||
});
|
||||
}
|
||||
else if (mode == ModeBlocking)
|
||||
|
||||
Reference in New Issue
Block a user