mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
AK+Format: Remove TypeErasedFormatParams& from format function.
This commit is contained in:
parent
865f5ed4f6
commit
7e62ffbc6e
27 changed files with 129 additions and 134 deletions
|
@ -37,7 +37,7 @@
|
|||
|
||||
//#define EXECUTE_DEBUG
|
||||
|
||||
void AK::Formatter<Shell::AST::Command>::format(TypeErasedFormatParams&, FormatBuilder& builder, const Shell::AST::Command& value)
|
||||
void AK::Formatter<Shell::AST::Command>::format(FormatBuilder& builder, const Shell::AST::Command& value)
|
||||
{
|
||||
if (m_sign_mode != FormatBuilder::SignMode::Default)
|
||||
ASSERT_NOT_REACHED();
|
||||
|
@ -47,7 +47,9 @@ void AK::Formatter<Shell::AST::Command>::format(TypeErasedFormatParams&, FormatB
|
|||
ASSERT_NOT_REACHED();
|
||||
if (m_mode != Mode::Default && m_mode != Mode::String)
|
||||
ASSERT_NOT_REACHED();
|
||||
if (m_width != value_not_set && m_precision != value_not_set)
|
||||
if (m_width.has_value())
|
||||
ASSERT_NOT_REACHED();
|
||||
if (m_precision.has_value())
|
||||
ASSERT_NOT_REACHED();
|
||||
|
||||
if (value.argv.is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue