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

@@ -29,7 +29,7 @@
namespace ripple {
namespace version {
typedef unsigned long long VersionNumber;
using VersionNumber = unsigned long long;
const char boostMinimal[] = "1.55.0";
const char openSSLMinimal[] = "1.0.1-g";

View File

@@ -28,7 +28,7 @@ namespace ripple {
namespace version {
/** Both Boost and OpenSSL have integral version numbers. */
typedef unsigned long long VersionNumber;
using VersionNumber = unsigned long long;
/** Minimal required boost version. */
extern const char boostMinimal[];

View File

@@ -36,7 +36,7 @@ class ResolverAsioImpl
, public beast::asio::AsyncObject <ResolverAsioImpl>
{
public:
typedef std::pair <std::string, std::string> HostAndPort;
using HostAndPort = std::pair <std::string, std::string>;
beast::Journal m_journal;

View File

@@ -75,7 +75,7 @@ using custom_delete_unique_ptr = std::unique_ptr <T, custom_delete <T>>;
// RSA
typedef custom_delete_unique_ptr <RSA> rsa_ptr;
using rsa_ptr = custom_delete_unique_ptr <RSA>;
static rsa_ptr rsa_generate_key (int n_bits)
{
@@ -91,7 +91,7 @@ static rsa_ptr rsa_generate_key (int n_bits)
// EVP_PKEY
typedef custom_delete_unique_ptr <EVP_PKEY> evp_pkey_ptr;
using evp_pkey_ptr = custom_delete_unique_ptr <EVP_PKEY>;
static evp_pkey_ptr evp_pkey_new()
{
@@ -117,7 +117,7 @@ static void evp_pkey_assign_rsa (EVP_PKEY* evp_pkey, rsa_ptr&& rsa)
// X509
typedef custom_delete_unique_ptr <X509> x509_ptr;
using x509_ptr = custom_delete_unique_ptr <X509>;
static x509_ptr x509_new()
{