mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
chore: Enable clang-tidy modernize checks (#6975)
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace xrpl {
|
||||
|
||||
namespace BuildInfo {
|
||||
namespace xrpl::BuildInfo {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -123,7 +121,7 @@ encodeSoftwareVersion(std::string_view versionStr)
|
||||
std::uint8_t hik) -> std::uint8_t {
|
||||
std::uint8_t ret = 0;
|
||||
|
||||
if (prefix != identifier.substr(0, prefix.length()))
|
||||
if (!identifier.starts_with(prefix))
|
||||
return 0;
|
||||
|
||||
if (!beast::lexicalCastChecked(
|
||||
@@ -174,6 +172,4 @@ isNewerVersion(std::uint64_t version)
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace BuildInfo
|
||||
|
||||
} // namespace xrpl
|
||||
} // namespace xrpl::BuildInfo
|
||||
|
||||
Reference in New Issue
Block a user