diff options
author | Max Kellermann <max@duempel.org> | 2013-10-20 13:46:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 13:47:32 +0200 |
commit | ae99135c8d0cb6d1c0b212c0ebe1458585c9d2c6 (patch) | |
tree | f23ac5d0e0fa9ae5ac333afa107146467c798e52 /src | |
parent | 1defb38a6f6ced41bb2ec8807a95e064b24d4688 (diff) | |
download | mpd-ae99135c8d0cb6d1c0b212c0ebe1458585c9d2c6.tar.gz mpd-ae99135c8d0cb6d1c0b212c0ebe1458585c9d2c6.tar.xz mpd-ae99135c8d0cb6d1c0b212c0ebe1458585c9d2c6.zip |
Main: convert anonymous enum to constexpr
Diffstat (limited to '')
-rw-r--r-- | src/Main.cxx | 6 |
1 files 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 <ws2tcpip.h> #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"); |