mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +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:
@@ -181,9 +181,9 @@ STArray::getSType() const
|
||||
}
|
||||
|
||||
bool
|
||||
STArray::isEquivalent(const STBase& t) const
|
||||
STArray::isEquivalent(STBase const& t) const
|
||||
{
|
||||
auto v = dynamic_cast<const STArray*>(&t);
|
||||
auto v = dynamic_cast<STArray const*>(&t);
|
||||
return v != nullptr && v_ == v->v_;
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ STArray::isDefault() const
|
||||
}
|
||||
|
||||
void
|
||||
STArray::sort(bool (*compare)(const STObject&, const STObject&))
|
||||
STArray::sort(bool (*compare)(STObject const&, STObject const&))
|
||||
{
|
||||
std::sort(v_.begin(), v_.end(), compare);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user