mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user