diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-20 00:21:26 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-20 00:21:26 +0100 |
commit | 854424a758fe11c385f334b8b998a0b06b6a2a99 (patch) | |
tree | 7fc3d006a10559f9bc5de26bc4308ddcebe84ce2 /src/client | |
parent | fe5d0ce82702a04a49b225fd9bbe69148d80196a (diff) |
client/Idle: use std::exchange()
Diffstat (limited to 'src/client')
-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(); |