From 3eb323fd04bae0330b447780bdff19c8bf57ea60 Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Thu, 5 Sep 2024 19:14:17 +0200 Subject: [PATCH] test 1 --- importexport/musicxml/musicxmlsupport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/importexport/musicxml/musicxmlsupport.cpp b/importexport/musicxml/musicxmlsupport.cpp index bbd6d9ba43eb7..c817f76a60158 100644 --- a/importexport/musicxml/musicxmlsupport.cpp +++ b/importexport/musicxml/musicxmlsupport.cpp @@ -733,15 +733,15 @@ AccidentalType mxmlString2accidentalType(const QString mxmlName, const QString s QString mxmlAccidentalTextToChar(const QString mxmlName) { - static std::map map; // map MusicXML accidental name to MuseScore enum AccidentalType + static QMap map; // map MusicXML accidental name to MuseScore enum AccidentalType if (map.empty()) { map["sharp"] = "♯"; map["natural"] = "♮"; map["flat"] = "♭"; } - if (mu::contains(map, mxmlName)) - return map.at(mxmlName); + if (map.contains(mxmlName)) + return map.value(mxmlName); else qDebug("mxmlAccidentalTextToChar: unsupported accidental '%s'", qPrintable(mxmlName)); return "";