mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-26 01:25:22 +02:00
AK: Make String::number() infallible
This API will always succeed in creating a String representing the provided number in base-10. (cherry picked from commit dd419b5a8df3b9a32478c4a8f0ea9f70334214cd; amended to update the rest of the system. No conflicts though!)
This commit is contained in:
committed by
Nico Weber
parent
fa5b2e8661
commit
073b3b992d
@@ -41,7 +41,7 @@ unsigned int HTMLTableColElement::span() const
|
||||
|
||||
WebIDL::ExceptionOr<void> HTMLTableColElement::set_span(unsigned int value)
|
||||
{
|
||||
return set_attribute(HTML::AttributeNames::span, MUST(String::number(value)));
|
||||
return set_attribute(HTML::AttributeNames::span, String::number(value));
|
||||
}
|
||||
|
||||
void HTMLTableColElement::apply_presentational_hints(CSS::StyleProperties& style) const
|
||||
|
||||
Reference in New Issue
Block a user