mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +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:
@@ -34,7 +34,7 @@ namespace Json {
|
||||
|
||||
namespace {
|
||||
|
||||
std::map<char, const char*> jsonSpecialCharacterEscape = {
|
||||
std::map<char, char const*> jsonSpecialCharacterEscape = {
|
||||
{'"', "\\\""},
|
||||
{'\\', "\\\\"},
|
||||
{'/', "\\/"},
|
||||
@@ -47,13 +47,13 @@ std::map<char, const char*> jsonSpecialCharacterEscape = {
|
||||
static size_t const jsonEscapeLength = 2;
|
||||
|
||||
// All other JSON punctuation.
|
||||
const char closeBrace = '}';
|
||||
const char closeBracket = ']';
|
||||
const char colon = ':';
|
||||
const char comma = ',';
|
||||
const char openBrace = '{';
|
||||
const char openBracket = '[';
|
||||
const char quote = '"';
|
||||
char const closeBrace = '}';
|
||||
char const closeBracket = ']';
|
||||
char const colon = ':';
|
||||
char const comma = ',';
|
||||
char const openBrace = '{';
|
||||
char const openBracket = '[';
|
||||
char const quote = '"';
|
||||
|
||||
static auto const integralFloatsBecomeInts = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user