mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 10:16:45 +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:
@@ -563,11 +563,11 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
env.close();
|
||||
|
||||
jrr = env.rpc("json", "ledger", to_string(jv))[jss::result];
|
||||
const std::string txid0 = [&]() {
|
||||
std::string const txid0 = [&]() {
|
||||
auto const& parentHash = env.current()->info().parentHash;
|
||||
if (BEAST_EXPECT(jrr[jss::queue_data].size() == 2))
|
||||
{
|
||||
const std::string txid1 = [&]() {
|
||||
std::string const txid1 = [&]() {
|
||||
auto const& txj = jrr[jss::queue_data][1u];
|
||||
BEAST_EXPECT(txj[jss::account] == alice.human());
|
||||
BEAST_EXPECT(txj[jss::fee_level] == "256");
|
||||
@@ -589,7 +589,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
auto const& tx = txj[jss::tx];
|
||||
BEAST_EXPECT(tx[jss::Account] == alice.human());
|
||||
BEAST_EXPECT(tx[jss::TransactionType] == jss::OfferCreate);
|
||||
const auto txid0 = tx[jss::hash].asString();
|
||||
auto const txid0 = tx[jss::hash].asString();
|
||||
uint256 tx0, tx1;
|
||||
BEAST_EXPECT(tx0.parseHex(txid0));
|
||||
BEAST_EXPECT(tx1.parseHex(txid1));
|
||||
@@ -665,7 +665,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
jv[jss::binary] = false;
|
||||
|
||||
jrr = env.rpc("json", "ledger", to_string(jv))[jss::result];
|
||||
const std::string txid2 = [&]() {
|
||||
std::string const txid2 = [&]() {
|
||||
if (BEAST_EXPECT(jrr[jss::queue_data].size() == 1))
|
||||
{
|
||||
auto const& txj = jrr[jss::queue_data][0u];
|
||||
|
||||
Reference in New Issue
Block a user