Skip to content

Commit

Permalink
Fix MSVC compiler warning
Browse files Browse the repository at this point in the history
reg.: declaration of 'xmlId' hides previous local declaration (C4456)
  • Loading branch information
Jojo-Schmitz authored and igorkorsukov committed Apr 19, 2024
1 parent 8ce2153 commit b91f544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/importexport/mei/internal/meiexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1276,8 +1276,8 @@ bool MeiExporter::writeNote(const Note* note, const Chord* chord, const Staff* s
Accidental* acc = note->accidental();
if (acc) {
Convert::colorToMEI(acc, meiAccid);
std::string xmlId = this->getXmlIdFor(acc, 'a');
meiAccid.Write(accidNode, xmlId);
std::string xmlIdAcc = this->getXmlIdFor(acc, 'a');
meiAccid.Write(accidNode, xmlIdAcc);
} else {
meiAccid.Write(accidNode, this->getLayerXmlIdFor(ACCID_L));
}
Expand Down

0 comments on commit b91f544

Please sign in to comment.