diff --git a/src/ripple/app/rdb/impl/RelationalDatabase.cpp b/src/ripple/app/rdb/impl/RelationalDatabase.cpp index d7104d3b8..6a130b851 100644 --- a/src/ripple/app/rdb/impl/RelationalDatabase.cpp +++ b/src/ripple/app/rdb/impl/RelationalDatabase.cpp @@ -19,9 +19,9 @@ #include #include +#include #include #include -#include namespace ripple { diff --git a/src/ripple/nodestore/backend/MemoryFactory.cpp b/src/ripple/nodestore/backend/MemoryFactory.cpp index 00090b217..de470c0a4 100644 --- a/src/ripple/nodestore/backend/MemoryFactory.cpp +++ b/src/ripple/nodestore/backend/MemoryFactory.cpp @@ -32,10 +32,10 @@ struct MemoryDB boost::unordered::concurrent_flat_map< uint256, std::shared_ptr, - base_uint_hasher> table; + base_uint_hasher> + table; }; - class MemoryFactory : public Factory { private: @@ -183,9 +183,7 @@ public: for_each(std::function)> f) override { assert(db_); - db_->table.visit_all([&f](const auto& entry) { - f(entry.second); - }); + db_->table.visit_all([&f](const auto& entry) { f(entry.second); }); } int diff --git a/src/ripple/overlay/impl/OverlayImpl.cpp b/src/ripple/overlay/impl/OverlayImpl.cpp index 6a60f9aab..3e0e68e87 100644 --- a/src/ripple/overlay/impl/OverlayImpl.cpp +++ b/src/ripple/overlay/impl/OverlayImpl.cpp @@ -38,9 +38,9 @@ #include #include +#include #include #include -#include namespace ripple { @@ -139,7 +139,9 @@ OverlayImpl::OverlayImpl( config, collector, app.config().section(SECTION_RELATIONAL_DB).empty() || - !boost::iequals(get(app.config().section(SECTION_RELATIONAL_DB), "backend"), "memory"))) + !boost::iequals( + get(app.config().section(SECTION_RELATIONAL_DB), "backend"), + "memory"))) , m_resolver(resolver) , next_id_(1) , timer_count_(0) diff --git a/src/ripple/peerfinder/impl/PeerfinderManager.cpp b/src/ripple/peerfinder/impl/PeerfinderManager.cpp index d3ae4f538..258111a16 100644 --- a/src/ripple/peerfinder/impl/PeerfinderManager.cpp +++ b/src/ripple/peerfinder/impl/PeerfinderManager.cpp @@ -17,18 +17,18 @@ */ //============================================================================== +#include #include #include +#include #include #include #include -#include #include #include #include #include #include -#include namespace ripple { namespace PeerFinder { @@ -59,9 +59,9 @@ public: , work_(std::in_place, std::ref(io_service_)) , m_clock(clock) , m_journal(journal) - , m_store(useSqLiteStore - ? static_cast(new StoreSqdb(journal)) - : static_cast(new InMemoryStore())) + , m_store( + useSqLiteStore ? static_cast(new StoreSqdb(journal)) + : static_cast(new InMemoryStore())) , checker_(io_service_) , m_logic(clock, *m_store, checker_, journal) , m_config(config) @@ -222,7 +222,7 @@ public: { if (auto sqdb = dynamic_cast(m_store.get())) sqdb->open(m_config); - m_logic.load(); + m_logic.load(); } //--------------------------------------------------------------------------