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:
Tom 2021-03-07 17:27:21 -07:00 committed by Andreas Kling
parent 096c4571bb
commit 42bc229500
Notes: sideshowbarker 2024-07-18 21:37:13 +09:00

View file

@ -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>