constexpr global variable conversion

Found with cppcoreguidelines-avoid-non-const-global-variables

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-05-31 14:30:20 -07:00
parent a2387210bf
commit 4c5fea96e4

View File

@ -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,