mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +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:
@@ -55,11 +55,11 @@ class Transaction_test : public beast::unit_test::suite
|
||||
using namespace test::jtx;
|
||||
using std::to_string;
|
||||
|
||||
const char* COMMAND = jss::tx.c_str();
|
||||
const char* BINARY = jss::binary.c_str();
|
||||
const char* NOT_FOUND = RPC::get_error_info(rpcTXN_NOT_FOUND).token;
|
||||
const char* INVALID = RPC::get_error_info(rpcINVALID_LGR_RANGE).token;
|
||||
const char* EXCESSIVE =
|
||||
char const* COMMAND = jss::tx.c_str();
|
||||
char const* BINARY = jss::binary.c_str();
|
||||
char const* NOT_FOUND = RPC::get_error_info(rpcTXN_NOT_FOUND).token;
|
||||
char const* INVALID = RPC::get_error_info(rpcINVALID_LGR_RANGE).token;
|
||||
char const* EXCESSIVE =
|
||||
RPC::get_error_info(rpcEXCESSIVE_LGR_RANGE).token;
|
||||
|
||||
Env env{*this, features};
|
||||
@@ -135,7 +135,7 @@ class Transaction_test : public beast::unit_test::suite
|
||||
BEAST_EXPECT(!result[jss::result][jss::searched_all].asBool());
|
||||
}
|
||||
|
||||
const auto deletedLedger = (startLegSeq + endLegSeq) / 2;
|
||||
auto const deletedLedger = (startLegSeq + endLegSeq) / 2;
|
||||
{
|
||||
// Remove one of the ledgers from the database directly
|
||||
dynamic_cast<SQLiteDatabase*>(&env.app().getRelationalDatabase())
|
||||
@@ -305,11 +305,11 @@ class Transaction_test : public beast::unit_test::suite
|
||||
using namespace test::jtx;
|
||||
using std::to_string;
|
||||
|
||||
const char* COMMAND = jss::tx.c_str();
|
||||
const char* BINARY = jss::binary.c_str();
|
||||
const char* NOT_FOUND = RPC::get_error_info(rpcTXN_NOT_FOUND).token;
|
||||
const char* INVALID = RPC::get_error_info(rpcINVALID_LGR_RANGE).token;
|
||||
const char* EXCESSIVE =
|
||||
char const* COMMAND = jss::tx.c_str();
|
||||
char const* BINARY = jss::binary.c_str();
|
||||
char const* NOT_FOUND = RPC::get_error_info(rpcTXN_NOT_FOUND).token;
|
||||
char const* INVALID = RPC::get_error_info(rpcINVALID_LGR_RANGE).token;
|
||||
char const* EXCESSIVE =
|
||||
RPC::get_error_info(rpcEXCESSIVE_LGR_RANGE).token;
|
||||
|
||||
Env env{*this, makeNetworkConfig(11111)};
|
||||
@@ -393,7 +393,7 @@ class Transaction_test : public beast::unit_test::suite
|
||||
BEAST_EXPECT(!result[jss::result][jss::searched_all].asBool());
|
||||
}
|
||||
|
||||
const auto deletedLedger = (startLegSeq + endLegSeq) / 2;
|
||||
auto const deletedLedger = (startLegSeq + endLegSeq) / 2;
|
||||
{
|
||||
// Remove one of the ledgers from the database directly
|
||||
dynamic_cast<SQLiteDatabase*>(&env.app().getRelationalDatabase())
|
||||
|
||||
Reference in New Issue
Block a user