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 78ec5ccdbc
commit d580e7c694
175 changed files with 834 additions and 20 deletions

View File

@@ -21,6 +21,9 @@
*/
//==============================================================================
namespace beast
{
HighResolutionTimer::HighResolutionTimer() { pimpl = new Pimpl (*this); }
HighResolutionTimer::~HighResolutionTimer() { stopTimer(); }
@@ -29,3 +32,5 @@ void HighResolutionTimer::stopTimer() { pimpl->stop(); }
bool HighResolutionTimer::isTimerRunning() const noexcept { return pimpl->periodMs != 0; }
int HighResolutionTimer::getTimerInterval() const noexcept { return pimpl->periodMs; }
} // namespace beast