diff --git a/src/beast/beast/asio/README.md b/src/beast/beast/asio/README.md index 5344652e2..e503d62f5 100644 --- a/src/beast/beast/asio/README.md +++ b/src/beast/beast/asio/README.md @@ -6,9 +6,9 @@ Wrappers and utilities to make working with boost::asio easier. If an object calls asynchronous initiating functions it must either: - 1. Manage its lifetime by being reference counted + 1. Manage its lifetime by being reference counted - or + or - 2. Wait for all pending completion handlers to be called before - allowing itself to be destroyed. + 2. Wait for all pending completion handlers to be called before + allowing itself to be destroyed. diff --git a/src/beast/beast/hash/hash_append.h b/src/beast/beast/hash/hash_append.h index 9a8615696..6a5365ac9 100644 --- a/src/beast/beast/hash/hash_append.h +++ b/src/beast/beast/hash/hash_append.h @@ -90,9 +90,9 @@ maybe_reverse_bytes(T& t, Hasher&) // is_uniquely_represented // A type T is contiguously hashable if for all combinations of two values of -// a type, say x and y, if x == y, then it must also be true that -// memcmp(addressof(x), addressof(y), sizeof(T)) == 0. I.e. if x == y, -// then x and y have the same bit pattern representation. +// a type, say x and y, if x == y, then it must also be true that +// memcmp(addressof(x), addressof(y), sizeof(T)) == 0. I.e. if x == y, +// then x and y have the same bit pattern representation. template struct is_uniquely_represented diff --git a/src/ripple/app/paths/tests/Path_test.cpp b/src/ripple/app/paths/tests/Path_test.cpp index dd1331ee8..e79521da2 100644 --- a/src/ripple/app/paths/tests/Path_test.cpp +++ b/src/ripple/app/paths/tests/Path_test.cpp @@ -83,14 +83,14 @@ public: {Account("alice")["USD"]}, Account("bob")["USD"](5)); Json::Value jv; Json::Reader().parse(R"([{ - "paths_canonical" : [], - "paths_computed" : [], - "source_amount" : - { - "currency" : "USD", - "issuer" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", - "value" : "5" - } + "paths_canonical" : [], + "paths_computed" : [], + "source_amount" : + { + "currency" : "USD", + "issuer" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", + "value" : "5" + } }])", jv); expect(jv == alternatives); } @@ -130,14 +130,14 @@ public: {USD}, Account("bob")["USD"](5)); Json::Value jv; Json::Reader().parse(R"([{ - "paths_canonical" : [], - "paths_computed" : [], - "source_amount" : - { - "currency" : "USD", - "issuer" : "r9QxhA9RghPZBbUchA9HkrmLKaWvkLXU29", - "value" : "5" - } + "paths_canonical" : [], + "paths_computed" : [], + "source_amount" : + { + "currency" : "USD", + "issuer" : "r9QxhA9RghPZBbUchA9HkrmLKaWvkLXU29", + "value" : "5" + } }])", jv); expect(jv == alternatives); } @@ -157,14 +157,14 @@ public: {USD}, Account("bob")["USD"](1)); Json::Value jv; Json::Reader().parse(R"([{ - "paths_canonical" : [], - "paths_computed" : [], - "source_amount" : - { - "currency" : "USD", - "issuer" : "r9QxhA9RghPZBbUchA9HkrmLKaWvkLXU29", - "value" : "1" - } + "paths_canonical" : [], + "paths_computed" : [], + "source_amount" : + { + "currency" : "USD", + "issuer" : "r9QxhA9RghPZBbUchA9HkrmLKaWvkLXU29", + "value" : "1" + } }])", jv); expect(jv == alternatives); } @@ -280,14 +280,14 @@ public: {USD}, Account("bob")["USD"](5)); Json::Value jv; Json::Reader().parse(R"([{ - "paths_canonical" : [], - "paths_computed" : [], - "source_amount" : - { - "currency" : "USD", - "issuer" : "r9QxhA9RghPZBbUchA9HkrmLKaWvkLXU29", - "value" : "5" - } + "paths_canonical" : [], + "paths_computed" : [], + "source_amount" : + { + "currency" : "USD", + "issuer" : "r9QxhA9RghPZBbUchA9HkrmLKaWvkLXU29", + "value" : "5" + } }])", jv); expect(jv == alternatives); } @@ -410,23 +410,23 @@ public: {Account("alice")["USD"]}, Account("carol")["USD"](5)); Json::Value jv; Json::Reader().parse(R"([{ - "paths_canonical" : [], - "paths_computed" : - [ - [ - { - "account" : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK", - "type" : 1, - "type_hex" : "0000000000000001" - } - ] - ], - "source_amount" : - { - "currency" : "USD", - "issuer" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", - "value" : "5" - } + "paths_canonical" : [], + "paths_computed" : + [ + [ + { + "account" : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK", + "type" : 1, + "type_hex" : "0000000000000001" + } + ] + ], + "source_amount" : + { + "currency" : "USD", + "issuer" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", + "value" : "5" + } }])", jv); expect(jv == alternatives); } @@ -463,7 +463,7 @@ public: "issuer" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", "value" : "0" }, - "LowNode" : "0000000000000000" + "LowNode" : "0000000000000000" })", jv); auto const jv_l = env.le(keylet::line(Account("bob").id(), @@ -488,7 +488,7 @@ public: "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", "value" : "0" }, - "Flags" : 196608, + "Flags" : 196608, "HighLimit" : { "currency" : "USD", "issuer" : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK", @@ -529,24 +529,24 @@ public: Json::Reader().parse(R"({ "Balance" : { - "currency" : "USD", - "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", - "value" : "50" + "currency" : "USD", + "issuer" : "rrrrrrrrrrrrrrrrrrrrBZbvji", + "value" : "50" }, "Flags" : 65536, "HighLimit" : { - "currency" : "USD", - "issuer" : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK", - "value" : "0" + "currency" : "USD", + "issuer" : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK", + "value" : "0" }, "HighNode" : "0000000000000000", "LedgerEntryType" : "RippleState", "LowLimit" : { - "currency" : "USD", - "issuer" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", - "value" : "0" + "currency" : "USD", + "issuer" : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", + "value" : "0" }, "LowNode" : "0000000000000000" })", jv); diff --git a/src/ripple/protocol/impl/STParsedJSON.cpp b/src/ripple/protocol/impl/STParsedJSON.cpp index 475644a54..c51945d77 100644 --- a/src/ripple/protocol/impl/STParsedJSON.cpp +++ b/src/ripple/protocol/impl/STParsedJSON.cpp @@ -836,10 +836,10 @@ static boost::optional parseArray ( } if (ret->getFName().fieldType != STI_OBJECT) - { - error = non_object_in_array (ss.str(), i); - return boost::none; - } + { + error = non_object_in_array (ss.str(), i); + return boost::none; + } tail.push_back (std::move (*ret)); } diff --git a/src/ripple/rpc/handlers/NoRippleCheck.cpp b/src/ripple/rpc/handlers/NoRippleCheck.cpp index 8f4b083f2..8c965b1cf 100644 --- a/src/ripple/rpc/handlers/NoRippleCheck.cpp +++ b/src/ripple/rpc/handlers/NoRippleCheck.cpp @@ -184,7 +184,7 @@ Json::Value doNoRippleCheck (RPC::Context& context) return true; } } - return false; + return false; }); return result; diff --git a/src/ripple/test/jtx/impl/multisign.cpp b/src/ripple/test/jtx/impl/multisign.cpp index 8aad9b457..31b161db0 100644 --- a/src/ripple/test/jtx/impl/multisign.cpp +++ b/src/ripple/test/jtx/impl/multisign.cpp @@ -103,7 +103,7 @@ msig::operator()(Env const& env, JTx& jt) const auto const sig = ripple::sign ( *publicKeyType(e.sig.pk().slice()), e.sig.sk(), ss.slice()); jo[sfTxnSignature.getJsonName()] = - strHex(Slice{ sig.data(), sig.size() }); + strHex(Slice{ sig.data(), sig.size() }); } }; }