Refactor TxFormats and LedgerEntryFormat to use a common template.

This commit is contained in:
Vinnie Falco
2013-07-06 19:31:34 -07:00
parent 1e43c10dee
commit b426d62075
16 changed files with 300 additions and 296 deletions

View File

@@ -12,7 +12,7 @@ SerializedTransaction::SerializedTransaction (TxType type)
, mSigGood (false)
, mSigBad (false)
{
mFormat = TxFormats::getInstance().findByType (type);
mFormat = TxFormats::getInstance()->findByType (type);
if (mFormat == nullptr)
{
@@ -31,7 +31,7 @@ SerializedTransaction::SerializedTransaction (STObject const& object)
{
mType = static_cast <TxType> (getFieldU16 (sfTransactionType));
mFormat = TxFormats::getInstance().findByType (mType);
mFormat = TxFormats::getInstance()->findByType (mType);
if (!mFormat)
{
@@ -59,7 +59,7 @@ SerializedTransaction::SerializedTransaction (SerializerIterator& sit) : STObjec
set (sit);
mType = static_cast<TxType> (getFieldU16 (sfTransactionType));
mFormat = TxFormats::getInstance().findByType (mType);
mFormat = TxFormats::getInstance()->findByType (mType);
if (!mFormat)
{