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

@@ -17,10 +17,10 @@
*/
//==============================================================================
#include <ripple/basics/contract.h>
#include <ripple/json/json_reader.h>
#include <test/jtx/jtx_json.h>
#include <test/jtx/utility.h>
#include <ripple/json/json_reader.h>
#include <ripple/basics/contract.h>
namespace ripple {
namespace test {
@@ -28,16 +28,15 @@ namespace jtx {
json::json(std::string const& s)
{
if (! Json::Reader().parse(s, jv_))
Throw<parse_error> ("bad json");
if (!Json::Reader().parse(s, jv_))
Throw<parse_error>("bad json");
}
json::json (char const* s)
: json(std::string(s)){}
json::json(char const* s) : json(std::string(s))
{
}
json::json (Json::Value jv)
: jv_ (std::move (jv))
json::json(Json::Value jv) : jv_(std::move(jv))
{
}
@@ -45,11 +44,10 @@ void
json::operator()(Env&, JTx& jt) const
{
auto& jv = jt.jv;
for (auto iter = jv_.begin();
iter != jv_.end(); ++iter)
for (auto iter = jv_.begin(); iter != jv_.end(); ++iter)
jv[iter.key().asString()] = *iter;
}
} // jtx
} // test
} // ripple
} // namespace jtx
} // namespace test
} // namespace ripple