diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/ClientIdle.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/ClientIdle.cxx b/src/client/ClientIdle.cxx index 13c71ba80..bc70c8327 100644 --- a/src/client/ClientIdle.cxx +++ b/src/client/ClientIdle.cxx @@ -29,8 +29,7 @@ Client::IdleNotify() noexcept assert(idle_waiting); assert(idle_flags != 0); - unsigned flags = idle_flags; - idle_flags = 0; + unsigned flags = std::exchange(idle_flags, 0); idle_waiting = false; const char *const*idle_names = idle_get_names(); |