mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
LibJS: Hide all the constructors!
Now that the GC allocator is able to invoke Cell subclass constructors directly via friendship, we no longer need to keep them public. :^)
This commit is contained in:
parent
d54ba587f3
commit
35c9aa7c05
196 changed files with 456 additions and 242 deletions
|
@ -48,7 +48,6 @@ public:
|
|||
return AK::Array { "nu"sv };
|
||||
}
|
||||
|
||||
explicit DurationFormat(Object& prototype);
|
||||
virtual ~DurationFormat() override = default;
|
||||
|
||||
void set_locale(String locale) { m_locale = move(locale); }
|
||||
|
@ -148,6 +147,8 @@ public:
|
|||
u8 fractional_digits() const { return m_fractional_digits.value(); }
|
||||
|
||||
private:
|
||||
explicit DurationFormat(Object& prototype);
|
||||
|
||||
static Style style_from_string(StringView style);
|
||||
static StringView style_to_string(Style);
|
||||
static ValueStyle date_style_from_string(StringView date_style);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue