From 62170d194a3e33f82bb42d76176765da0d8504f7 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 12 Feb 2013 22:08:55 -0800 Subject: [PATCH] Suppress a warning. Micro-optimization. --- src/cpp/ripple/Pathfinder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/Pathfinder.cpp b/src/cpp/ripple/Pathfinder.cpp index fe6fc0f60..3185537ab 100644 --- a/src/cpp/ripple/Pathfinder.cpp +++ b/src/cpp/ripple/Pathfinder.cpp @@ -130,14 +130,14 @@ bool Pathfinder::bDefaultPath(const STPath& spPath) Pathfinder::Pathfinder(Ledger::ref ledger, const RippleAddress& uSrcAccountID, const RippleAddress& uDstAccountID, const uint160& uSrcCurrencyID, const uint160& uSrcIssuerID, const STAmount& saDstAmount) - : mLedger(ledger), - mSrcAccountID(uSrcAccountID.getAccountID()), + : mSrcAccountID(uSrcAccountID.getAccountID()), mDstAccountID(uDstAccountID.getAccountID()), mDstAmount(saDstAmount), mSrcCurrencyID(uSrcCurrencyID), - mSrcIssuerID(uSrcIssuerID) + mSrcIssuerID(uSrcIssuerID), + mSrcAmount(uSrcCurrencyID, uSrcIssuerID, 1, 0), + mLedger(ledger) { - mSrcAmount = STAmount(uSrcCurrencyID, uSrcIssuerID, 1, 0); // -1/uSrcIssuerID/uSrcIssuerID theApp->getOrderBookDB().setup(mLedger); // TODO: have the orderbook update itself rather than rebuild it from scratch each time