aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-10-31 13:31:14 -0700
committerChris Robinson <[email protected]>2018-10-31 13:31:14 -0700
commitde275408fac8317d1e4148b8870c3cdf98b84569 (patch)
tree4dacb95edb8bfc06f98cf38e5eb6c6642d36ea14
parent0e7986eaa826401b5ef80b033583eb9f24dbf813 (diff)
Make a const array constexpr
-rw-r--r--OpenAL32/alBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.cpp b/OpenAL32/alBuffer.cpp
index 74f108e5..dc07e147 100644
--- a/OpenAL32/alBuffer.cpp
+++ b/OpenAL32/alBuffer.cpp
@@ -970,7 +970,7 @@ static ALboolean DecomposeUserFormat(ALenum format, enum UserFmtChannels *chans,
UserFmtChannels channels;
UserFmtType type;
};
- static const std::array<FormatMap,46> list{{
+ static constexpr std::array<FormatMap,46> list{{
{ AL_FORMAT_MONO8, UserFmtMono, UserFmtUByte },
{ AL_FORMAT_MONO16, UserFmtMono, UserFmtShort },
{ AL_FORMAT_MONO_FLOAT32, UserFmtMono, UserFmtFloat },