diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2022-12-18 01:04:18 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-06 16:05:13 +0100 |
commit | 25e39df7ba1554e14756541a12ace692c54c5e0e (patch) | |
tree | 78bbfec4ab96e66ddfda5791cde63d75f933f28a | |
parent | b0ac88cf890a234606316d2d137355129ac76c1b (diff) | |
download | serenity-25e39df7ba1554e14756541a12ace692c54c5e0e.zip |
AK: Rename `StandardFormatter::Mode::Float` => `FixedPoint`
-rw-r--r-- | AK/Format.cpp | 6 | ||||
-rw-r--r-- | AK/Format.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/AK/Format.cpp b/AK/Format.cpp index 6d558f72fa..0f52a50dde 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -651,7 +651,7 @@ void StandardFormatter::parse(TypeErasedFormatParams& params, FormatParser& pars else if (parser.consume_specific('p')) m_mode = Mode::Pointer; else if (parser.consume_specific('f')) - m_mode = Mode::Float; + m_mode = Mode::FixedPoint; else if (parser.consume_specific('a')) m_mode = Mode::Hexfloat; else if (parser.consume_specific('A')) @@ -794,7 +794,7 @@ ErrorOr<void> Formatter<long double>::format(FormatBuilder& builder, long double { u8 base; bool upper_case; - if (m_mode == Mode::Default || m_mode == Mode::Float) { + if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) { base = 10; upper_case = false; } else if (m_mode == Mode::Hexfloat) { @@ -817,7 +817,7 @@ ErrorOr<void> Formatter<double>::format(FormatBuilder& builder, double value) { u8 base; bool upper_case; - if (m_mode == Mode::Default || m_mode == Mode::Float) { + if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) { base = 10; upper_case = false; } else if (m_mode == Mode::Hexfloat) { diff --git a/AK/Format.h b/AK/Format.h index 9b46081814..6dfc1437cd 100644 --- a/AK/Format.h +++ b/AK/Format.h @@ -292,7 +292,7 @@ struct StandardFormatter { Character, String, Pointer, - Float, + FixedPoint, Hexfloat, HexfloatUppercase, HexDump, @@ -520,7 +520,7 @@ struct Formatter<FixedPoint<precision, Underlying>> : StandardFormatter { { u8 base; bool upper_case; - if (m_mode == Mode::Default || m_mode == Mode::Float) { + if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) { base = 10; upper_case = false; } else if (m_mode == Mode::Hexfloat) { |