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:
Howard Hinnant
2015-05-21 19:12:10 -04:00
committed by Vinnie Falco
parent 52f298f150
commit 155fcdbcd0
224 changed files with 790 additions and 844 deletions

View File

@@ -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),

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;