From ae99135c8d0cb6d1c0b212c0ebe1458585c9d2c6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 13:46:32 +0200 Subject: Main: convert anonymous enum to constexpr --- src/Main.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Main.cxx b/src/Main.cxx index 2280abfa9..ba1c83f6e 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -94,10 +94,8 @@ #include #endif -enum { - DEFAULT_BUFFER_SIZE = 2048, - DEFAULT_BUFFER_BEFORE_PLAY = 10, -}; +static constexpr unsigned DEFAULT_BUFFER_SIZE = 2048; +static constexpr unsigned DEFAULT_BUFFER_BEFORE_PLAY = 10; static constexpr Domain main_domain("main"); -- cgit v1.2.3