mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
General tidy and refactoring:
* Use nullptr (C++11) instead of NULL. * Put each file into its own namespace declaration. * Remove "using namespace" directives and add scope qualifiers. * Control when beast's implementation of std::equal (C++14) is used. * Tidy up some const declarations. Conflicts: src/ripple_app/shamap/SHAMapSync.cpp src/ripple_app/tx/TransactionEngine.cpp
This commit is contained in:
committed by
Vinnie Falco
parent
c581ffb8a4
commit
cad50c68a8
@@ -21,7 +21,7 @@ SETUP_LOG (PathRequest)
|
||||
|
||||
PathRequest::PathRequest (
|
||||
const boost::shared_ptr<InfoSub>& subscriber, int id, PathRequests& owner,
|
||||
Journal journal)
|
||||
beast::Journal journal)
|
||||
: m_journal (journal)
|
||||
, mLock (this, "PathRequest", __FILE__, __LINE__)
|
||||
, mOwner (owner)
|
||||
@@ -40,7 +40,7 @@ const boost::shared_ptr<InfoSub>& subscriber, int id, PathRequests& owner,
|
||||
|
||||
static std::string const get_milli_diff (boost::posix_time::ptime const& after, boost::posix_time::ptime const& before)
|
||||
{
|
||||
return lexicalCastThrow <std::string> (static_cast <unsigned> ((after - before).total_milliseconds()));
|
||||
return beast::lexicalCastThrow <std::string> (static_cast <unsigned> ((after - before).total_milliseconds()));
|
||||
}
|
||||
|
||||
static std::string const get_milli_diff (boost::posix_time::ptime const& before)
|
||||
|
||||
Reference in New Issue
Block a user