diff options
author | Rosen Penev <rosenp@gmail.com> | 2021-05-31 14:30:20 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2021-08-16 20:58:21 -0700 |
commit | 4c5fea96e46dfb8cd6f814876aa371f8d64ec1d1 (patch) | |
tree | 375e4f8fe80481294f021a51d39612cc9e94c565 | |
parent | a2387210bf886d4c098d2d521b9bb014e73bfedb (diff) |
constexpr global variable conversion
Found with cppcoreguidelines-avoid-non-const-global-variables
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r-- | src/decoder/plugins/MikmodDecoderPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/plugins/MikmodDecoderPlugin.cxx b/src/decoder/plugins/MikmodDecoderPlugin.cxx index 7fbc24bf3..0f0cb3a6a 100644 --- a/src/decoder/plugins/MikmodDecoderPlugin.cxx +++ b/src/decoder/plugins/MikmodDecoderPlugin.cxx @@ -62,9 +62,9 @@ mikmod_mpd_is_present() return true; } -static char drv_name[] = PACKAGE_NAME; -static char drv_version[] = VERSION; -static char drv_alias[] = PACKAGE; +static constexpr char drv_name[] = PACKAGE_NAME; +static constexpr char drv_version[] = VERSION; +static constexpr char drv_alias[] = PACKAGE; static MDRIVER drv_mpd = { nullptr, |