mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-27 00:50:45 +00:00
chore: Enable modernize-use-auto (#7707)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user