From 7a91872ee5d3413e046b63726ce339f788cee587 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 14 Nov 2013 22:35:09 -0800 Subject: [PATCH] Fix broken indentation around BOOST_FOREACH --- src/ripple_app/peers/Peer.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/ripple_app/peers/Peer.cpp b/src/ripple_app/peers/Peer.cpp index 7410807639..9abe4b17d2 100644 --- a/src/ripple_app/peers/Peer.cpp +++ b/src/ripple_app/peers/Peer.cpp @@ -2469,9 +2469,10 @@ void PeerImp::addLedger (uint256 const& hash) { boost::mutex::scoped_lock sl(mRecentLock); BOOST_FOREACH (uint256 const & ledger, mRecentLedgers) - - if (ledger == hash) - return; + { + if (ledger == hash) + return; + } if (mRecentLedgers.size () == 128) mRecentLedgers.pop_front (); @@ -2483,9 +2484,10 @@ bool PeerImp::hasTxSet (uint256 const& hash) const { boost::mutex::scoped_lock sl(mRecentLock); BOOST_FOREACH (uint256 const & set, mRecentTxSets) - - if (set == hash) - return true; + { + if (set == hash) + return true; + } return false; } @@ -2494,9 +2496,10 @@ void PeerImp::addTxSet (uint256 const& hash) { boost::mutex::scoped_lock sl(mRecentLock); BOOST_FOREACH (uint256 const & set, mRecentTxSets) - - if (set == hash) - return; + { + if (set == hash) + return; + } if (mRecentTxSets.size () == 128) mRecentTxSets.pop_front ();