From 2bbff77e489ae72a332b18b122844bd761d75764 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 13:52:26 +0200 Subject: OutputControl: convert anonymous enum to constexpr --- src/OutputControl.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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 #include -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; -- cgit v1.2.3