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
@@ -28,7 +28,7 @@ namespace Validators {
|
||||
the list of chosen validators is critical to the health of the network.
|
||||
All operations are performed asynchronously on an internal thread.
|
||||
*/
|
||||
class Manager : public PropertyStream::Source
|
||||
class Manager : public beast::PropertyStream::Source
|
||||
{
|
||||
protected:
|
||||
Manager();
|
||||
@@ -40,9 +40,9 @@ public:
|
||||
@param journal Where to send log output.
|
||||
*/
|
||||
static Manager* New (
|
||||
Stoppable& stoppableParent,
|
||||
File const& pathToDbFileOrDirectory,
|
||||
Journal journal);
|
||||
beast::Stoppable& stoppableParent,
|
||||
beast::File const& pathToDbFileOrDirectory,
|
||||
beast::Journal journal);
|
||||
|
||||
/** Destroy the object.
|
||||
Any pending source fetch operations are aborted. This will block
|
||||
@@ -61,11 +61,11 @@ public:
|
||||
Can be called from any thread.
|
||||
*/
|
||||
/** @{ */
|
||||
virtual void addStrings (String name,
|
||||
virtual void addStrings (beast::String name,
|
||||
std::vector <std::string> const& strings) = 0;
|
||||
virtual void addStrings (String name,
|
||||
StringArray const& stringArray) = 0;
|
||||
virtual void addFile (File const& file) = 0;
|
||||
virtual void addStrings (beast::String name,
|
||||
beast::StringArray const& stringArray) = 0;
|
||||
virtual void addFile (beast::File const& file) = 0;
|
||||
virtual void addStaticSource (Validators::Source* source) = 0;
|
||||
/** @} */
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
Thread safety:
|
||||
Can be called from any thread.
|
||||
*/
|
||||
virtual void addURL (URL const& url) = 0;
|
||||
virtual void addURL (beast::URL const& url) = 0;
|
||||
|
||||
/** Add a live source of validators.
|
||||
The caller loses ownership of the object. The fetch is performed
|
||||
|
||||
Reference in New Issue
Block a user