mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
chore: Enable clang-tidy v21 new checks (#7031)
This commit is contained in:
@@ -50,7 +50,7 @@ Account::fromCache(AcctStringType stringType, std::string name, KeyType type)
|
||||
|
||||
auto const keys = [stringType, &name, type]() {
|
||||
// Special handling for base58Seeds.
|
||||
if (stringType == base58Seed)
|
||||
if (stringType == AcctStringType::base58Seed)
|
||||
{
|
||||
std::optional<Seed> const seed = parseBase58<Seed>(name);
|
||||
if (!seed.has_value())
|
||||
@@ -68,12 +68,15 @@ Account::fromCache(AcctStringType stringType, std::string name, KeyType type)
|
||||
}
|
||||
|
||||
Account::Account(std::string name, KeyType type)
|
||||
: Account(fromCache(Account::other, std::move(name), type))
|
||||
: Account(fromCache(Account::AcctStringType::other, std::move(name), type))
|
||||
{
|
||||
}
|
||||
|
||||
Account::Account(AcctStringType stringType, std::string base58SeedStr)
|
||||
: Account(fromCache(Account::base58Seed, std::move(base58SeedStr), KeyType::secp256k1))
|
||||
: Account(fromCache(
|
||||
Account::AcctStringType::base58Seed,
|
||||
std::move(base58SeedStr),
|
||||
KeyType::secp256k1))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user