Closed Bug 1357986 Opened 7 years ago Closed 7 years ago

Use helper functions of TimeUnit to make code more readable

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

1. TimeUnit::Zero() is more readable than TimeUnit::FromMicroseconds(0).
2. TimeUnit::Zero() is more readable than TimeUnit().
3. TimeUnit::FromInfinity() is more readable than TimeUnit::FromMicroseconds(std::numeric_limits<int64_t>::max()).
4. t.IsPositive() is more readable than t > TimeUnit().
Assignee: nobody → jwwang
Blocks: 1245019
Priority: -- → P3
Depends on: 1357987
Attachment #8860247 - Flags: review?(kaku)
Comment on attachment 8860247 [details]
Bug 1357986 - Use helper functions of TimeUnit to make code more readable.

https://reviewboard.mozilla.org/r/132250/#review135112
Attachment #8860247 - Flags: review?(kaku) → review+
Thanks!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e535df594d22
Use helper functions of TimeUnit to make code more readable. r=kaku
https://hg.mozilla.org/mozilla-central/rev/e535df594d22
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
No longer depends on: 1357987
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: