Format first-party source according to .clang-format

This commit is contained in:
Pretty Printer
2020-04-17 09:56:34 -05:00
committed by manojsdoshi
parent 65dfc5d19e
commit 50760c6935
1076 changed files with 86161 additions and 77449 deletions

View File

@@ -26,14 +26,11 @@ namespace jtx {
namespace detail {
std::uint32_t
owned_count_of(ReadView const& view,
AccountID const& id,
LedgerEntryType type)
owned_count_of(ReadView const& view, AccountID const& id, LedgerEntryType type)
{
std::uint32_t count = 0;
forEachItem (view, id,
[&count, type](std::shared_ptr<SLE const> const& sle)
{
forEachItem(
view, id, [&count, type](std::shared_ptr<SLE const> const& sle) {
if (sle->getType() == type)
++count;
});
@@ -41,25 +38,23 @@ owned_count_of(ReadView const& view,
}
void
owned_count_helper(Env& env,
owned_count_helper(
Env& env,
AccountID const& id,
LedgerEntryType type,
std::uint32_t value)
LedgerEntryType type,
std::uint32_t value)
{
env.test.expect(owned_count_of(
*env.current(), id, type) == value);
env.test.expect(owned_count_of(*env.current(), id, type) == value);
}
} // detail
} // namespace detail
void
owners::operator()(Env& env) const
{
env.test.expect(env.le(
account_)->getFieldU32(sfOwnerCount) ==
value_);
env.test.expect(env.le(account_)->getFieldU32(sfOwnerCount) == value_);
}
} // jtx
} // test
} // ripple
} // namespace jtx
} // namespace test
} // namespace ripple