From 4c5fea96e46dfb8cd6f814876aa371f8d64ec1d1 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 31 May 2021 14:30:20 -0700 Subject: constexpr global variable conversion Found with cppcoreguidelines-avoid-non-const-global-variables Signed-off-by: Rosen Penev --- src/decoder/plugins/MikmodDecoderPlugin.cxx | 6 +++--- 1 file 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, -- cgit v1.2.3