refactor: Fix clang-tidy modernize-use-auto

This commit is contained in:
Lars Toenning
2025-10-09 22:35:53 +02:00
parent 899b5d6ba4
commit 29bc905e56
194 changed files with 523 additions and 531 deletions

View File

@@ -207,7 +207,7 @@ namespace swift::misc::aviation
QVariant CTransponder::propertyByIndex(CPropertyIndexRef index) const
{
if (index.isMyself()) { return QVariant::fromValue(*this); }
const ColumnIndex i = index.frontCasted<ColumnIndex>();
const auto i = index.frontCasted<ColumnIndex>();
switch (i)
{
case IndexMode: return QVariant::fromValue(this->getTransponderMode());
@@ -231,7 +231,7 @@ namespace swift::misc::aviation
(*this) = variant.value<CTransponder>();
return;
}
const ColumnIndex i = index.frontCasted<ColumnIndex>();
const auto i = index.frontCasted<ColumnIndex>();
switch (i)
{
case IndexMode: m_transponderMode = variant.toInt(); break;