mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
AK: Initialize the AK::Time members
Since we tell the compiler to provide a default constructor we need to initialize the member variables.
This commit is contained in:
parent
096c4571bb
commit
42bc229500
|
@ -117,8 +117,8 @@ private:
|
||||||
|
|
||||||
static Time from_half_sanitized(i64 seconds, i32 extra_seconds, u32 nanoseconds);
|
static Time from_half_sanitized(i64 seconds, i32 extra_seconds, u32 nanoseconds);
|
||||||
|
|
||||||
i64 m_seconds;
|
i64 m_seconds { 0 };
|
||||||
u32 m_nanoseconds; // Always less than 1'000'000'000
|
u32 m_nanoseconds { 0 }; // Always less than 1'000'000'000
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename TimevalType>
|
template<typename TimevalType>
|
||||||
|
|
Loading…
Reference in a new issue