mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Change typedef to using.
Conflicts: src/ripple/app/TODO.md src/ripple/app/ledger/Ledger.h src/ripple/protocol/Protocol.h
This commit is contained in:
committed by
Vinnie Falco
parent
52f298f150
commit
155fcdbcd0
@@ -27,7 +27,7 @@ namespace RPC {
|
||||
* instance of InternalHandler with your own handler function. */
|
||||
struct InternalHandler
|
||||
{
|
||||
typedef Json::Value (*handler_t) (const Json::Value&);
|
||||
using handler_t = Json::Value (*) (const Json::Value&);
|
||||
|
||||
InternalHandler (const std::string& name, handler_t handler)
|
||||
: name_ (name),
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace RPC {
|
||||
class Manager
|
||||
{
|
||||
public:
|
||||
typedef std::function <void (Request&)> handler_type;
|
||||
using handler_type = std::function <void (Request&)>;
|
||||
|
||||
virtual ~Manager () = 0;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ Json::Value doLogLevel (RPC::Context& context)
|
||||
Logs::toString(Logs::fromSeverity(deprecatedLogs().severity()));
|
||||
std::vector< std::pair<std::string, std::string> > logTable (
|
||||
deprecatedLogs().partition_severities());
|
||||
typedef std::map<std::string, std::string>::value_type stringPair;
|
||||
using stringPair = std::map<std::string, std::string>::value_type;
|
||||
for (auto const& it : logTable)
|
||||
lev[it.first] = it.second;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace RPC {
|
||||
class ManagerImp : public Manager
|
||||
{
|
||||
public:
|
||||
typedef hash_map <std::string, handler_type> Map;
|
||||
using Map = hash_map <std::string, handler_type>;
|
||||
|
||||
beast::Journal m_journal;
|
||||
Map m_map;
|
||||
|
||||
Reference in New Issue
Block a user