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

@@ -22,11 +22,11 @@ namespace Validators {
class SourceStringsImp
: public SourceStrings
, public LeakChecked <SourceStringsImp>
, public beast::LeakChecked <SourceStringsImp>
{
public:
SourceStringsImp (
String name, StringArray const& strings)
beast::String name, beast::StringArray const& strings)
: m_name (name)
, m_strings (strings)
{
@@ -41,18 +41,18 @@ public:
return m_name.toStdString();
}
String uniqueID () const
beast::String uniqueID () const
{
// VFALCO TODO This can't be right...?
return String::empty;
return beast::String::empty;
}
String createParam ()
beast::String createParam ()
{
return String::empty;
return beast::String::empty;
}
void fetch (Results& results, Journal journal)
void fetch (Results& results, beast::Journal journal)
{
results.list.reserve (m_strings.size ());
@@ -63,18 +63,19 @@ public:
}
results.success = results.list.size () > 0;
results.expirationTime = Time::getCurrentTime () + RelativeTime::hours (24);
results.expirationTime = beast::Time::getCurrentTime () +
beast::RelativeTime::hours (24);
}
private:
String m_name;
StringArray m_strings;
beast::String m_name;
beast::StringArray m_strings;
};
//------------------------------------------------------------------------------
SourceStrings* SourceStrings::New (
String name, StringArray const& strings)
beast::String name, beast::StringArray const& strings)
{
return new SourceStringsImp (name, strings);
}