Files
serenity/Userland/Libraries/LibWeb/CSS/StyleValues/IntegerStyleValue.cpp
Andreas Kling 073b3b992d 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!)
2024-11-29 16:03:30 -05:00

17 lines
253 B
C++

/*
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "IntegerStyleValue.h"
namespace Web::CSS {
String IntegerStyleValue::to_string() const
{
return String::number(m_value);
}
}