Skip to content

Commit

Permalink
Fix MSVC compoler warning
Browse files Browse the repository at this point in the history
reg.: declaration of 'adjacentItem' hides previous local declaration (C4456)
  • Loading branch information
Jojo-Schmitz committed Feb 18, 2025
1 parent 1ed4f22 commit e51010b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notation/internal/notationinteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2653,7 +2653,7 @@ void NotationInteraction::doAddSlur(EngravingItem* firstItem, EngravingItem* sec

if (!adjacentCr) {
for (track_idx_t track = cr->vStaffIdx() * VOICES; track < (cr->vStaffIdx() + 1) * VOICES; track++) {
EngravingItem* adjacentItem = adjacentCrSeg->element(track);
adjacentItem = adjacentCrSeg->element(track);
if (!adjacentItem || !adjacentItem->isChordRest()) {
continue;
}
Expand Down

0 comments on commit e51010b

Please sign in to comment.