mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Don't use a shared_ptr where an auto_ptr will do.
This commit is contained in:
@@ -93,8 +93,8 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
|
||||
}
|
||||
#endif
|
||||
|
||||
Transactor::pointer transactor=Transactor::makeTransactor(txn,params,this);
|
||||
if(transactor)
|
||||
std::auto_ptr<Transactor> transactor = Transactor::makeTransactor(txn,params,this);
|
||||
if (transactor.get() != NULL)
|
||||
{
|
||||
uint256 txID = txn.getTransactionID();
|
||||
if (!txID)
|
||||
|
||||
Reference in New Issue
Block a user