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

@@ -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