mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
LibJS: Remove pointless 'explicit' from a couple of constructors
This commit is contained in:
parent
c65424d806
commit
bece2093f2
Notes:
sideshowbarker
2024-07-18 08:33:42 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/bece2093f22 Pull-request: https://github.com/SerenityOS/serenity/pull/8940 Reviewed-by: https://github.com/IdanHo ✅
5 changed files with 5 additions and 5 deletions
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue