mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +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
Notes:
sideshowbarker
2024-07-18 21:37:13 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/42bc2295000 Pull-request: https://github.com/SerenityOS/serenity/pull/5690 Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -117,8 +117,8 @@ private:
|
|||
|
||||
static Time from_half_sanitized(i64 seconds, i32 extra_seconds, u32 nanoseconds);
|
||||
|
||||
i64 m_seconds;
|
||||
u32 m_nanoseconds; // Always less than 1'000'000'000
|
||||
i64 m_seconds { 0 };
|
||||
u32 m_nanoseconds { 0 }; // Always less than 1'000'000'000
|
||||
};
|
||||
|
||||
template<typename TimevalType>
|
||||
|
|
Loading…
Reference in a new issue