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:
Howard Hinnant
2014-03-07 18:54:11 -05:00
committed by Vinnie Falco
parent c581ffb8a4
commit cad50c68a8
519 changed files with 3618 additions and 2726 deletions

View File

@@ -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)