chore: Enable modernize-use-auto (#7707)

This commit is contained in:
Ayaz Salikhov
2026-07-02 21:02:55 +01:00
committed by GitHub
parent 3d847f2a60
commit 7ba1d76d05
50 changed files with 82 additions and 85 deletions

View File

@@ -338,7 +338,7 @@ STObject::getText() const
bool
STObject::isEquivalent(STBase const& t) const
{
STObject const* v = dynamic_cast<STObject const*>(&t);
auto const* v = dynamic_cast<STObject const*>(&t);
if (v == nullptr)
return false;
@@ -474,7 +474,7 @@ STObject::peekFieldArray(SField const& field)
bool
STObject::setFlag(std::uint32_t f)
{
STUInt32* t = dynamic_cast<STUInt32*>(getPField(sfFlags, true));
auto* t = dynamic_cast<STUInt32*>(getPField(sfFlags, true));
if (t == nullptr)
return false;
@@ -486,7 +486,7 @@ STObject::setFlag(std::uint32_t f)
bool
STObject::clearFlag(std::uint32_t f)
{
STUInt32* t = dynamic_cast<STUInt32*>(getPField(sfFlags));
auto* t = dynamic_cast<STUInt32*>(getPField(sfFlags));
if (t == nullptr)
return false;
@@ -504,7 +504,7 @@ STObject::isFlag(std::uint32_t f) const
std::uint32_t
STObject::getFlags(void) const
{
STUInt32 const* t = dynamic_cast<STUInt32 const*>(peekAtPField(sfFlags));
auto const* t = dynamic_cast<STUInt32 const*>(peekAtPField(sfFlags));
if (t == nullptr)
return 0;
@@ -651,7 +651,7 @@ Blob
STObject::getFieldVL(SField const& field) const
{
STBlob const empty;
STBlob const& b = getFieldByConstRef<STBlob>(field, empty);
auto const& b = getFieldByConstRef<STBlob>(field, empty);
return Blob(b.data(), b.data() + b.size());
}