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

@@ -42,7 +42,7 @@ namespace detail {
class ErrorCategory
{
public:
using Map = std::unordered_map <error_code_i, ErrorInfo> ;
using Map = std::unordered_map <error_code_i, ErrorInfo>;
ErrorCategory ()
: m_unknown (rpcUNKNOWN, "unknown", "An unknown error code.")

View File

@@ -355,8 +355,8 @@ Account RippleAddress::getAccountID () const
}
}
typedef std::mutex StaticLockType;
typedef std::lock_guard <StaticLockType> StaticScopedLockType;
using StaticLockType = std::mutex;
using StaticScopedLockType = std::lock_guard <StaticLockType>;
static StaticLockType s_lock;
static hash_map <Blob, std::string> rncMapOld, rncMapNew;

View File

@@ -39,7 +39,7 @@ SField::IsSigning const SField::notSigning;
int SField::num = 0;
typedef std::lock_guard <std::mutex> StaticScopedLockType;
using StaticScopedLockType = std::lock_guard <std::mutex>;
// Give this translation unit only, permission to construct SFields
struct SField::make