mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refactor: Fix clang-tidy modernize-use-auto
This commit is contained in:
@@ -62,7 +62,7 @@ namespace swift::misc
|
||||
CVariant propertyByIndex(const swift::misc::CPropertyIndex &index) const
|
||||
{
|
||||
if (index.isMyself()) { return CVariant::from(*this); }
|
||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
const auto i = index.frontCasted<ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
case IndexDescription: return CVariant::fromValue(this->m_description);
|
||||
@@ -79,7 +79,7 @@ namespace swift::misc
|
||||
(*this) = variant.to<CTestValueObject>();
|
||||
return;
|
||||
}
|
||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
const auto i = index.frontCasted<ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
case IndexDescription: this->setDescription(variant.value<QString>()); break;
|
||||
|
||||
Reference in New Issue
Block a user