Don't use a shared_ptr where an auto_ptr will do.

This commit is contained in:
JoelKatz
2012-12-26 13:54:51 -08:00
parent 79d139e2ce
commit fa109a1aee
3 changed files with 12 additions and 12 deletions

View File

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