aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputControl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/OutputControl.cxx')
-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;