mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
Userland: Silence warnings from ElapsedTimer::elapsed() type change
We changed elapsed() to return i64 instead of int as that's what AK::Time::to_milliseconds() returns, causing a bunch of implicit lossy conversions in callers. Clean those up with a mix of type changes and casts.
This commit is contained in:
parent
48bf0b1408
commit
a492e2018d
Notes:
sideshowbarker
2024-07-17 10:31:19 +09:00
Author: https://github.com/ADKaster
Commit: a492e2018d
Pull-request: https://github.com/SerenityOS/serenity/pull/16771
Reviewed-by: https://github.com/kleinesfilmroellchen
Reviewed-by: https://github.com/linusg ✅
7 changed files with 9 additions and 10 deletions
|
@ -17,7 +17,7 @@ class Performance final : public DOM::EventTarget {
|
|||
public:
|
||||
virtual ~Performance() override;
|
||||
|
||||
double now() const { return m_timer.elapsed(); }
|
||||
double now() const { return static_cast<double>(m_timer.elapsed()); }
|
||||
double time_origin() const;
|
||||
|
||||
JS::GCPtr<NavigationTiming::PerformanceTiming> timing();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue