refactor: clang format

This commit is contained in:
Thomas Zobler
2025-12-01 22:44:14 +01:00
parent c44f8710a8
commit 4f45423132
2 changed files with 9 additions and 16 deletions

View File

@@ -29,7 +29,6 @@ namespace swift::misc::simulation::msfs2024
bool CAircraftModelLoaderMsfs2024::isLoadingFinished() const
{
return !m_parserWorker || m_parserWorker->isFinished();
}
CAircraftModelLoaderMsfs2024::CAircraftModelLoaderMsfs2024(QObject *parent)
@@ -84,12 +83,12 @@ namespace swift::misc::simulation::msfs2024
emit this->diskLoadingStarted(simulator, mode);
// TODO TZ need help: simplify, we don't need directories in this->performParsing for MSFS2024
m_parserWorker = CWorker::fromTask(this, "CAircraftModelLoaderMsfs2024::performParsing",
[this, modelConsolidation]() {
auto models = this->performParsing();
if (modelConsolidation) { modelConsolidation(models, true); }
return models;
});
m_parserWorker =
CWorker::fromTask(this, "CAircraftModelLoaderMsfs2024::performParsing", [this, modelConsolidation]() {
auto models = this->performParsing();
if (modelConsolidation) { modelConsolidation(models, true); }
return models;
});
m_parserWorker->thenWithResult<CAircraftModelList>(this, [=](const auto &models) {
this->updateInstalledModels(models);
m_loadingMessages.freezeOrder();

View File

@@ -152,15 +152,9 @@ namespace swift::misc::simulation::settings
}
}
void CSimulatorSettings::setPropertyModelSet(bool value) { m_modelSet = value; }
void CSimulatorSettings::setPropertyWithDbEntry(bool value)
{
m_withDbEntry = value;
}
void CSimulatorSettings::setPropertyDistributorFiltered(bool value)
{
m_distributorFiltered = value;
}
void CSimulatorSettings::setPropertyModelSet(bool value) { m_modelSet = value; }
void CSimulatorSettings::setPropertyWithDbEntry(bool value) { m_withDbEntry = value; }
void CSimulatorSettings::setPropertyDistributorFiltered(bool value) { m_distributorFiltered = value; }
void CSimulatorSettings::setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
{