diff options
author | Max Kellermann <max@duempel.org> | 2013-10-20 13:52:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 13:53:01 +0200 |
commit | 2bbff77e489ae72a332b18b122844bd761d75764 (patch) | |
tree | c76724bfc958c4acc3783fd4e575d649b47065ce /src | |
parent | 3315c67f0f06d49f69f3b02bdabefd04542872df (diff) | |
download | mpd-2bbff77e489ae72a332b18b122844bd761d75764.tar.gz mpd-2bbff77e489ae72a332b18b122844bd761d75764.tar.xz mpd-2bbff77e489ae72a332b18b122844bd761d75764.zip |
OutputControl: convert anonymous enum to constexpr
Diffstat (limited to '')
-rw-r--r-- | src/OutputControl.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/OutputControl.cxx b/src/OutputControl.cxx index bcc22e842..829bddeae 100644 --- a/src/OutputControl.cxx +++ b/src/OutputControl.cxx @@ -36,11 +36,9 @@ #include <assert.h> #include <stdlib.h> -enum { - /** after a failure, wait this number of seconds before - automatically reopening the device */ - REOPEN_AFTER = 10, -}; +/** after a failure, wait this number of seconds before + automatically reopening the device */ +static constexpr unsigned REOPEN_AFTER = 10; struct notify audio_output_client_notify; |