diff --git a/libmscore/style.cpp b/libmscore/style.cpp index 472b945ec055..11a36293370f 100644 --- a/libmscore/style.cpp +++ b/libmscore/style.cpp @@ -2140,7 +2140,7 @@ bool MStyle::readStyleValCompat(XmlReader& e) bool MStyle::readTextStyleValCompat(XmlReader& e) { - constexpr std::array, 3> styleNamesEndings {{ + static const std::array, 3> styleNamesEndings {{ { "FontBold", FontStyle::Bold }, { "FontItalic", FontStyle::Italic }, { "FontUnderline", FontStyle::Underline }