LibJS: Remove pointless 'explicit' from a couple of constructors

This commit is contained in:
Linus Groh 2021-07-21 23:45:44 +01:00
parent c65424d806
commit bece2093f2
Notes: sideshowbarker 2024-07-18 08:33:42 +09:00
5 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ class Calendar final : public Object {
JS_OBJECT(Calendar, Object);
public:
explicit Calendar(String identifier, Object& prototype);
Calendar(String identifier, Object& prototype);
virtual ~Calendar() override = default;
String const& identifier() const { return m_identifier; }

View file

@ -15,7 +15,7 @@ class Duration final : public Object {
JS_OBJECT(Duration, Object);
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;
double years() const { return m_years; }

View file

@ -17,7 +17,7 @@ class Instant final : public Object {
JS_OBJECT(Instant, Object);
public:
explicit Instant(BigInt& nanoseconds, Object& prototype);
Instant(BigInt& nanoseconds, Object& prototype);
virtual ~Instant() override = default;
BigInt const& nanoseconds() const { return m_nanoseconds; }

View file

@ -15,7 +15,7 @@ class PlainDate final : public Object {
JS_OBJECT(PlainDate, Object);
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;
[[nodiscard]] i32 iso_year() const { return m_iso_year; }

View file

@ -18,7 +18,7 @@ public:
// Needs to store values in the range -8.64 * 10^13 to 8.64 * 10^13
using OffsetType = double;
explicit TimeZone(String identifier, Object& prototype);
TimeZone(String identifier, Object& prototype);
virtual ~TimeZone() override = default;
String const& identifier() const { return m_identifier; }