From 141c2dce11b986b01525071e2f5bee0c6beecdf3 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 17 May 2013 01:44:37 -0700 Subject: [PATCH] Avoid needless allocate/copy/free --- src/cpp/ripple/Offer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpp/ripple/Offer.h b/src/cpp/ripple/Offer.h index cdb9dd8e8..82bc58646 100644 --- a/src/cpp/ripple/Offer.h +++ b/src/cpp/ripple/Offer.h @@ -15,9 +15,9 @@ public: AccountItem::pointer makeItem(const uint160&, SerializedLedgerEntry::ref ledgerEntry); LedgerEntryType getType(){ return(ltOFFER); } - STAmount getTakerPays(){ return(mTakerPays); } - STAmount getTakerGets(){ return(mTakerGets); } - RippleAddress getAccount(){ return(mAccount); } + const STAmount& getTakerPays(){ return(mTakerPays); } + const STAmount& getTakerGets(){ return(mTakerGets); } + const RippleAddress& getAccount(){ return(mAccount); } int getSeq(){ return(mSeq); } Json::Value getJson(int);