mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refactor: Fix clang-tidy modernize-use-auto
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user