mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS+LibWeb: Rename number_to_string to number_to_deprecated_string
This commit is contained in:
parent
c79d20be58
commit
8a88d4434f
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/trflynn89
Commit: 8a88d4434f
Pull-request: https://github.com/SerenityOS/serenity/pull/17014
Reviewed-by: https://github.com/linusg ✅
5 changed files with 8 additions and 8 deletions
|
@ -296,7 +296,7 @@ bool MathematicalValue::is_zero() const
|
|||
DeprecatedString MathematicalValue::to_deprecated_string() const
|
||||
{
|
||||
return m_value.visit(
|
||||
[](double value) { return number_to_string(value, NumberToStringMode::WithoutExponent); },
|
||||
[](double value) { return number_to_deprecated_string(value, NumberToStringMode::WithoutExponent); },
|
||||
[](Crypto::SignedBigInteger const& value) { return value.to_base_deprecated(10); },
|
||||
[](auto) -> DeprecatedString { VERIFY_NOT_REACHED(); });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue