mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 09:46:53 +00:00
refactor: use east const convention (#5409)
This change refactors the codebase to use the "east const convention", and adds a clang-format rule to follow this convention.
This commit is contained in:
@@ -40,7 +40,7 @@ STBase::STBase(SField const& n) : fName(&n)
|
||||
}
|
||||
|
||||
STBase&
|
||||
STBase::operator=(const STBase& t)
|
||||
STBase::operator=(STBase const& t)
|
||||
{
|
||||
if (!fName->isUseful())
|
||||
fName = t.fName;
|
||||
@@ -48,13 +48,13 @@ STBase::operator=(const STBase& t)
|
||||
}
|
||||
|
||||
bool
|
||||
STBase::operator==(const STBase& t) const
|
||||
STBase::operator==(STBase const& t) const
|
||||
{
|
||||
return (getSType() == t.getSType()) && isEquivalent(t);
|
||||
}
|
||||
|
||||
bool
|
||||
STBase::operator!=(const STBase& t) const
|
||||
STBase::operator!=(STBase const& t) const
|
||||
{
|
||||
return (getSType() != t.getSType()) || !isEquivalent(t);
|
||||
}
|
||||
@@ -116,7 +116,7 @@ STBase::add(Serializer& s) const
|
||||
}
|
||||
|
||||
bool
|
||||
STBase::isEquivalent(const STBase& t) const
|
||||
STBase::isEquivalent(STBase const& t) const
|
||||
{
|
||||
XRPL_ASSERT(
|
||||
getSType() == STI_NOTPRESENT,
|
||||
@@ -154,7 +154,7 @@ STBase::addFieldID(Serializer& s) const
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
std::ostream&
|
||||
operator<<(std::ostream& out, const STBase& t)
|
||||
operator<<(std::ostream& out, STBase const& t)
|
||||
{
|
||||
return out << t.getFullText();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user