Commit 80503940 authored by Max Kellermann's avatar Max Kellermann

event/Loop: add `noexcept`

parent ff8b5bc6
...@@ -242,7 +242,7 @@ duration_cast_round_up(std::chrono::duration<Rep, Period> d) noexcept ...@@ -242,7 +242,7 @@ duration_cast_round_up(std::chrono::duration<Rep, Period> d) noexcept
* value (= never times out) is translated to the magic value -1. * value (= never times out) is translated to the magic value -1.
*/ */
static constexpr int static constexpr int
ExportTimeoutMS(Event::Duration timeout) ExportTimeoutMS(Event::Duration timeout) noexcept
{ {
return timeout >= timeout.zero() return timeout >= timeout.zero()
? int(duration_cast_round_up<std::chrono::milliseconds>(timeout).count()) ? int(duration_cast_round_up<std::chrono::milliseconds>(timeout).count())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment