diff options
author | Max Kellermann <max@duempel.org> | 2014-12-24 09:52:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-24 09:52:32 +0100 |
commit | 51150faa398b63ef47f4eafe6c800fc08c95719f (patch) | |
tree | d1bcc0a4f0c364595a23b8419fe41d80b7583bca /src | |
parent | ea96919b800af8b4d87e73d775b71fa126dc7fd9 (diff) | |
download | mpd-51150faa398b63ef47f4eafe6c800fc08c95719f.tar.gz mpd-51150faa398b63ef47f4eafe6c800fc08c95719f.tar.xz mpd-51150faa398b63ef47f4eafe6c800fc08c95719f.zip |
output/jack: convert enum to constexpr
Diffstat (limited to '')
-rw-r--r-- | src/output/plugins/JackOutputPlugin.cxx | 4 |
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); |