mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-28 01:20:32 +00:00
chore: Enable clang-tidy coreguidelines checks (#6698)
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
@@ -8,12 +8,14 @@ namespace test {
|
||||
namespace jtx {
|
||||
|
||||
qualityInPercent::qualityInPercent(double percent)
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-use-default-member-init)
|
||||
: qIn_(static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
|
||||
{
|
||||
assert(percent <= 400 && percent >= 0);
|
||||
}
|
||||
|
||||
qualityOutPercent::qualityOutPercent(double percent)
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-use-default-member-init)
|
||||
: qOut_(static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
|
||||
{
|
||||
assert(percent <= 400 && percent >= 0);
|
||||
|
||||
Reference in New Issue
Block a user