mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Modernize code:
* Clean STBase-derived class creation interfaces * Annotate overriden STBase virtual functions * Optimize path deserialization * Prefer range-based for * Prefer std::unique_ptr * Remove BOOST_FOREACH
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include <ripple/app/ledger/AcceptedLedger.h>
|
||||
#include <ripple/basics/UptimeTimer.h>
|
||||
#include <ripple/nodestore/Database.h>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -43,7 +42,7 @@ Json::Value doGetCounts (RPC::Context& context)
|
||||
|
||||
Json::Value ret (Json::objectValue);
|
||||
|
||||
BOOST_FOREACH (CountedObjects::Entry& it, objectCounts)
|
||||
for (auto const& it : objectCounts)
|
||||
{
|
||||
ret [it.first] = it.second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user