Remove more wasteful allocate/increment/decrement/free cycles.

This commit is contained in:
JoelKatz
2012-08-19 19:23:10 -07:00
parent 84ee39b147
commit 420ee91877
11 changed files with 51 additions and 49 deletions

View File

@@ -257,7 +257,7 @@ void LedgerAcquire::trigger(const Peer::pointer& peer, bool timer)
resetTimer();
}
void PeerSet::sendRequest(const newcoin::TMGetLedger& tmGL, Peer::pointer peer)
void PeerSet::sendRequest(const newcoin::TMGetLedger& tmGL, const Peer::pointer& peer)
{
if (!peer)
sendRequest(tmGL);