mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS: Change RelativeTimeFormat::number_format to return a reference
In the one place this will be used, we will know that the NumberFormat object is non-null. So return a reference, as the AO it is passed off to also expects a reference.
This commit is contained in:
parent
90e68bca6a
commit
236fd0a2cb
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public:
|
|||
void set_numeric(StringView numeric);
|
||||
StringView numeric_string() const;
|
||||
|
||||
NumberFormat* number_format() const { return m_number_format; }
|
||||
NumberFormat& number_format() const { return *m_number_format; }
|
||||
void set_number_format(NumberFormat* number_format) { m_number_format = number_format; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue