mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
LibJS: Remove pointless 'explicit' from a couple of constructors
This commit is contained in:
parent
c65424d806
commit
bece2093f2
5 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ class Calendar final : public Object {
|
||||||
JS_OBJECT(Calendar, Object);
|
JS_OBJECT(Calendar, Object);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Calendar(String identifier, Object& prototype);
|
Calendar(String identifier, Object& prototype);
|
||||||
virtual ~Calendar() override = default;
|
virtual ~Calendar() override = default;
|
||||||
|
|
||||||
String const& identifier() const { return m_identifier; }
|
String const& identifier() const { return m_identifier; }
|
||||||
|
|
|
@ -15,7 +15,7 @@ class Duration final : public Object {
|
||||||
JS_OBJECT(Duration, Object);
|
JS_OBJECT(Duration, Object);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Duration(double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds, Object& prototype);
|
Duration(double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds, Object& prototype);
|
||||||
virtual ~Duration() override = default;
|
virtual ~Duration() override = default;
|
||||||
|
|
||||||
double years() const { return m_years; }
|
double years() const { return m_years; }
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Instant final : public Object {
|
||||||
JS_OBJECT(Instant, Object);
|
JS_OBJECT(Instant, Object);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Instant(BigInt& nanoseconds, Object& prototype);
|
Instant(BigInt& nanoseconds, Object& prototype);
|
||||||
virtual ~Instant() override = default;
|
virtual ~Instant() override = default;
|
||||||
|
|
||||||
BigInt const& nanoseconds() const { return m_nanoseconds; }
|
BigInt const& nanoseconds() const { return m_nanoseconds; }
|
||||||
|
|
|
@ -15,7 +15,7 @@ class PlainDate final : public Object {
|
||||||
JS_OBJECT(PlainDate, Object);
|
JS_OBJECT(PlainDate, Object);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit PlainDate(i32 iso_year, i32 iso_month, i32 iso_day, Object& calendar, Object& prototype);
|
PlainDate(i32 iso_year, i32 iso_month, i32 iso_day, Object& calendar, Object& prototype);
|
||||||
virtual ~PlainDate() override = default;
|
virtual ~PlainDate() override = default;
|
||||||
|
|
||||||
[[nodiscard]] i32 iso_year() const { return m_iso_year; }
|
[[nodiscard]] i32 iso_year() const { return m_iso_year; }
|
||||||
|
|
|
@ -18,7 +18,7 @@ public:
|
||||||
// Needs to store values in the range -8.64 * 10^13 to 8.64 * 10^13
|
// Needs to store values in the range -8.64 * 10^13 to 8.64 * 10^13
|
||||||
using OffsetType = double;
|
using OffsetType = double;
|
||||||
|
|
||||||
explicit TimeZone(String identifier, Object& prototype);
|
TimeZone(String identifier, Object& prototype);
|
||||||
virtual ~TimeZone() override = default;
|
virtual ~TimeZone() override = default;
|
||||||
|
|
||||||
String const& identifier() const { return m_identifier; }
|
String const& identifier() const { return m_identifier; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue