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

@@ -1230,10 +1230,7 @@ Json::Value NetworkOPsImp::getOwnerInfo (
do
{
STVector256 svIndexes = sleNode->getFieldV256 (sfIndexes);
const std::vector<uint256>& vuiIndexes = svIndexes.peekValue ();
BOOST_FOREACH (uint256 const& uDirEntry, vuiIndexes)
for (auto const& uDirEntry : sleNode->getFieldV256 (sfIndexes))
{
auto sleCur = lpLedger->getSLEi (uDirEntry);
@@ -1265,7 +1262,7 @@ Json::Value NetworkOPsImp::getOwnerInfo (
}
}
uNodeDir = sleNode->getFieldU64 (sfIndexNext);
uNodeDir = sleNode->getFieldU64 (sfIndexNext);
if (uNodeDir)
{