aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-20 13:52:26 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 13:53:01 +0200
commit2bbff77e489ae72a332b18b122844bd761d75764 (patch)
treec76724bfc958c4acc3783fd4e575d649b47065ce /src
parent3315c67f0f06d49f69f3b02bdabefd04542872df (diff)
downloadmpd-2bbff77e489ae72a332b18b122844bd761d75764.tar.gz
mpd-2bbff77e489ae72a332b18b122844bd761d75764.tar.xz
mpd-2bbff77e489ae72a332b18b122844bd761d75764.zip
OutputControl: convert anonymous enum to constexpr
Diffstat (limited to '')
-rw-r--r--src/OutputControl.cxx8
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;