Micro-optimization.

This commit is contained in:
JoelKatz
2013-02-13 05:34:19 -08:00
parent cf02cfd089
commit fa2283f234
2 changed files with 4 additions and 4 deletions

View File

@@ -20,14 +20,14 @@ class OrderBook
uint160 mIssuerOut;
//SerializedLedgerEntry::pointer mLedgerEntry;
OrderBook(SerializedLedgerEntry::pointer ledgerEntry); // For accounts in a ledger
OrderBook(SerializedLedgerEntry::ref ledgerEntry); // For accounts in a ledger
public:
typedef boost::shared_ptr<OrderBook> pointer;
typedef const boost::shared_ptr<OrderBook>& ref;
// returns NULL if ledgerEntry doesn't point to an order
// if ledgerEntry is an Order it creates the OrderBook this order would live in
static OrderBook::pointer newOrderBook(SerializedLedgerEntry::pointer ledgerEntry);
static OrderBook::pointer newOrderBook(SerializedLedgerEntry::ref ledgerEntry);
uint256& getBookBase(){ return(mBookBase); }
uint160& getCurrencyIn(){ return(mCurrencyIn); }