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

@@ -39,11 +39,11 @@ template<class AppApiFacade>
class AmendmentTableImpl final : public AmendmentTable
{
protected:
typedef hash_map<uint256, AmendmentState> amendmentMap_t;
typedef hash_set<uint256> amendmentList_t;
using amendmentMap_t = hash_map<uint256, AmendmentState>;
using amendmentList_t = hash_set<uint256>;
typedef RippleMutex LockType;
typedef std::lock_guard <LockType> ScopedLockType;
using LockType = RippleMutex;
using ScopedLockType = std::lock_guard <LockType>;
LockType mLock;
amendmentMap_t m_amendmentMap;
@@ -410,7 +410,7 @@ AmendmentTableImpl<AppApiFacade>::reportValidations (const AmendmentSet& set)
int threshold = (set.mTrustedValidations * mMajorityFraction) / 256;
typedef std::map<uint256, int>::value_type u256_int_pair;
using u256_int_pair = std::map<uint256, int>::value_type;
ScopedLockType sl (mLock);