mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-24 23:50:22 +00:00
fix clang-tidy issues
This commit is contained in:
@@ -83,18 +83,18 @@ struct FloatState
|
||||
{
|
||||
// Set only when the requested mode is valid; sets the rounding mode on
|
||||
// construction and restores the previous mode on destruction.
|
||||
std::optional<NumberRoundModeGuard> guard_;
|
||||
std::optional<NumberRoundModeGuard> guard;
|
||||
|
||||
explicit FloatState(int32_t mode)
|
||||
{
|
||||
if (auto const rm = Number::checkedRoundingMode(mode))
|
||||
guard_.emplace(*rm);
|
||||
guard.emplace(*rm);
|
||||
}
|
||||
|
||||
explicit
|
||||
operator bool() const
|
||||
{
|
||||
return guard_.has_value();
|
||||
return guard.has_value();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user