mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a large number of cases where we copy construct a shared_ptr just to destroy it.
This commit is contained in:
@@ -41,7 +41,7 @@ boost::weak_ptr<PeerSet> TransactionAcquire::pmDowncast()
|
||||
return boost::shared_polymorphic_downcast<PeerSet, TransactionAcquire>(shared_from_this());
|
||||
}
|
||||
|
||||
void TransactionAcquire::trigger(Peer::pointer peer, bool timer)
|
||||
void TransactionAcquire::trigger(const Peer::pointer& peer, bool timer)
|
||||
{
|
||||
if (mComplete || mFailed)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user