Cleanups and surface reduction:

* Don't use friendship unless needed
* Trim down interfaces
* Make classes feel more like std containers
This commit is contained in:
Nik Bougalis
2014-09-26 22:00:17 -07:00
parent cfb6b678f1
commit 8835af11d5
14 changed files with 184 additions and 301 deletions

View File

@@ -470,7 +470,7 @@ TER PathState::expandPath (
// Figure out next node properties for implied node.
const auto uNxtCurrencyID = spSourcePath.size ()
? Currency(spSourcePath.getElement (0).getCurrency ())
? Currency(spSourcePath.front ().getCurrency ())
// Use next node.
: currencyOutID;
// Use send.
@@ -478,7 +478,7 @@ TER PathState::expandPath (
// TODO(tom): complexify this next logic further in case someone
// understands it.
const auto nextAccountID = spSourcePath.size ()
? Account(spSourcePath.getElement (0).getAccountID ())
? Account(spSourcePath. front ().getAccountID ())
: !isXRP(currencyOutID)
? (issuerOutID == uReceiverID)
? Account(uReceiverID)