mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -21,37 +21,39 @@
|
||||
|
||||
namespace ripple {
|
||||
|
||||
InnerObjectFormats::InnerObjectFormats ()
|
||||
InnerObjectFormats::InnerObjectFormats()
|
||||
{
|
||||
add (sfSignerEntry.jsonName.c_str(), sfSignerEntry.getCode(),
|
||||
add(sfSignerEntry.jsonName.c_str(),
|
||||
sfSignerEntry.getCode(),
|
||||
{
|
||||
{sfAccount, soeREQUIRED},
|
||||
{sfSignerWeight, soeREQUIRED},
|
||||
{sfAccount, soeREQUIRED},
|
||||
{sfSignerWeight, soeREQUIRED},
|
||||
});
|
||||
|
||||
add (sfSigner.jsonName.c_str(), sfSigner.getCode(),
|
||||
add(sfSigner.jsonName.c_str(),
|
||||
sfSigner.getCode(),
|
||||
{
|
||||
{sfAccount, soeREQUIRED},
|
||||
{sfAccount, soeREQUIRED},
|
||||
{sfSigningPubKey, soeREQUIRED},
|
||||
{sfTxnSignature, soeREQUIRED},
|
||||
{sfTxnSignature, soeREQUIRED},
|
||||
});
|
||||
}
|
||||
|
||||
InnerObjectFormats const&
|
||||
InnerObjectFormats::getInstance ()
|
||||
InnerObjectFormats::getInstance()
|
||||
{
|
||||
static InnerObjectFormats instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
SOTemplate const*
|
||||
InnerObjectFormats::findSOTemplateBySField (SField const& sField) const
|
||||
InnerObjectFormats::findSOTemplateBySField(SField const& sField) const
|
||||
{
|
||||
auto itemPtr = findByType (sField.getCode ());
|
||||
auto itemPtr = findByType(sField.getCode());
|
||||
if (itemPtr)
|
||||
return &(itemPtr->getSOTemplate());
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // ripple
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user