mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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
@@ -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";
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user