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,28 +17,28 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <test/jtx/quality.h>
|
||||
#include <ripple/protocol/SField.h>
|
||||
#include <ripple/protocol/Quality.h>
|
||||
#include <ripple/protocol/SField.h>
|
||||
#include <test/jtx/quality.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace test {
|
||||
namespace jtx {
|
||||
|
||||
qualityInPercent::qualityInPercent (double percent)
|
||||
: qIn_ (static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
|
||||
qualityInPercent::qualityInPercent(double percent)
|
||||
: qIn_(static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
|
||||
{
|
||||
assert (percent <= 400 && percent >= 0);
|
||||
assert(percent <= 400 && percent >= 0);
|
||||
}
|
||||
|
||||
qualityOutPercent::qualityOutPercent (double percent)
|
||||
: qOut_ (static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
|
||||
qualityOutPercent::qualityOutPercent(double percent)
|
||||
: qOut_(static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
|
||||
{
|
||||
assert (percent <= 400 && percent >= 0);
|
||||
assert(percent <= 400 && percent >= 0);
|
||||
}
|
||||
|
||||
static void
|
||||
insertQualityIntoJtx (SField const& field, std::uint32_t value, JTx& jt)
|
||||
insertQualityIntoJtx(SField const& field, std::uint32_t value, JTx& jt)
|
||||
{
|
||||
jt.jv[field.jsonName] = value;
|
||||
}
|
||||
@@ -46,27 +46,27 @@ insertQualityIntoJtx (SField const& field, std::uint32_t value, JTx& jt)
|
||||
void
|
||||
qualityIn::operator()(Env&, JTx& jt) const
|
||||
{
|
||||
insertQualityIntoJtx (sfQualityIn, qIn_, jt);
|
||||
insertQualityIntoJtx(sfQualityIn, qIn_, jt);
|
||||
}
|
||||
|
||||
void
|
||||
qualityInPercent::operator()(Env&, JTx& jt) const
|
||||
{
|
||||
insertQualityIntoJtx (sfQualityIn, qIn_, jt);
|
||||
insertQualityIntoJtx(sfQualityIn, qIn_, jt);
|
||||
}
|
||||
|
||||
void
|
||||
qualityOut::operator()(Env&, JTx& jt) const
|
||||
{
|
||||
insertQualityIntoJtx (sfQualityOut, qOut_, jt);
|
||||
insertQualityIntoJtx(sfQualityOut, qOut_, jt);
|
||||
}
|
||||
|
||||
void
|
||||
qualityOutPercent::operator()(Env&, JTx& jt) const
|
||||
{
|
||||
insertQualityIntoJtx (sfQualityOut, qOut_, jt);
|
||||
insertQualityIntoJtx(sfQualityOut, qOut_, jt);
|
||||
}
|
||||
|
||||
} // jtx
|
||||
} // test
|
||||
} // ripple
|
||||
} // namespace jtx
|
||||
} // namespace test
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user