aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-24 09:52:32 +0100
committerMax Kellermann <max@duempel.org>2014-12-24 09:52:32 +0100
commit51150faa398b63ef47f4eafe6c800fc08c95719f (patch)
treed1bcc0a4f0c364595a23b8419fe41d80b7583bca /src
parentea96919b800af8b4d87e73d775b71fa126dc7fd9 (diff)
downloadmpd-51150faa398b63ef47f4eafe6c800fc08c95719f.tar.gz
mpd-51150faa398b63ef47f4eafe6c800fc08c95719f.tar.xz
mpd-51150faa398b63ef47f4eafe6c800fc08c95719f.zip
output/jack: convert enum to constexpr
Diffstat (limited to 'src')
-rw-r--r--src/output/plugins/JackOutputPlugin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx
index 777db11bf..69fade13e 100644
--- a/src/output/plugins/JackOutputPlugin.cxx
+++ b/src/output/plugins/JackOutputPlugin.cxx
@@ -36,9 +36,7 @@
#include <stdlib.h>
#include <string.h>
-enum {
- MAX_PORTS = 16,
-};
+static constexpr unsigned MAX_PORTS = 16;
static const size_t jack_sample_size = sizeof(jack_default_audio_sample_t);