mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
General refactoring, using C++11
* Remove broken RecycledObjectPool * Fix beast::ServiceQueue using List instead of LockFreeStack * Add class semaphore, fixes broken Semaphore * Move crytpo module files to new beast directory * Use c++11 replacements for boost and beast types: - std::atomic instead of beast::Atomic - std::function instead of boost::function, beast::function - std::unique_ptr instead of beast::ScopedPointer - std::shared_ptr instead of boost::shared_ptr * Remove modules: - beast_db - beast_crypto - beast_extras * Remove unnecessary classes: - AbstractFifo - AddConst - AtomicCounter - AtomicFlag - AtomicPointer - AtomicState - CopyConst - Expression - ForwardList - IfCond - Interval - IntrusiveArray - KeyvaDB - PointerToOther - PointerTraits - RemoveConst - RemoveConstVolatile - RemoveReference - RemoveVolatile - SharedObjectArray - SingleThreadedSharedObject - SophiaDB factory - SortedSet - WeakReference - beast::unique_ptr
This commit is contained in:
@@ -276,7 +276,7 @@ Json::Value RPCHandler::transactionSign (Json::Value params, bool bSubmit, bool
|
||||
return rpcError (rpcSRC_ACT_NOT_FOUND);
|
||||
}
|
||||
|
||||
UPTR_T<STObject> sopTrans;
|
||||
std::unique_ptr<STObject> sopTrans;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -989,7 +989,7 @@ Json::Value RPCHandler::doProofCreate (Json::Value params, Resource::Charge& loa
|
||||
if (params.isMember ("difficulty") || params.isMember ("secret"))
|
||||
{
|
||||
// VFALCO TODO why aren't we using the app's factory?
|
||||
beast::ScopedPointer <ProofOfWorkFactory> pgGen (ProofOfWorkFactory::New ());
|
||||
std::unique_ptr <ProofOfWorkFactory> pgGen (ProofOfWorkFactory::New ());
|
||||
|
||||
if (params.isMember ("difficulty"))
|
||||
{
|
||||
@@ -1075,7 +1075,7 @@ Json::Value RPCHandler::doProofVerify (Json::Value params, Resource::Charge& loa
|
||||
if (params.isMember ("difficulty") || params.isMember ("secret"))
|
||||
{
|
||||
// VFALCO TODO why aren't we using the app's factory?
|
||||
beast::ScopedPointer <ProofOfWorkFactory> pgGen (ProofOfWorkFactory::New ());
|
||||
std::unique_ptr <ProofOfWorkFactory> pgGen (ProofOfWorkFactory::New ());
|
||||
|
||||
if (params.isMember ("difficulty"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user