aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-26 21:49:26 +0200
committerMax Kellermann <max@duempel.org>2013-09-26 21:49:26 +0200
commit17e108a10a79a5cfb44981323442c92e35813e98 (patch)
treebe9e53d8af32af7666c7b99974bfbe12246ed00a /src
parent5bc4ab899f444723dbb47915c438d7a8673ef44e (diff)
downloadmpd-17e108a10a79a5cfb44981323442c92e35813e98.tar.gz
mpd-17e108a10a79a5cfb44981323442c92e35813e98.tar.xz
mpd-17e108a10a79a5cfb44981323442c92e35813e98.zip
MusicChunk: use constexpr for CHUNK_SIZE
Diffstat (limited to '')
-rw-r--r--src/MusicChunk.hxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/MusicChunk.hxx b/src/MusicChunk.hxx
index 23c3b7423..87821fe1c 100644
--- a/src/MusicChunk.hxx
+++ b/src/MusicChunk.hxx
@@ -29,9 +29,7 @@
#include <stdint.h>
#include <stddef.h>
-enum {
- CHUNK_SIZE = 4096,
-};
+static constexpr size_t CHUNK_SIZE = 4096;
struct AudioFormat;
struct Tag;