mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 21:28:40 +00:00
AK+Format: Remove TypeErasedFormatParams& from format function.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user