Skip to content

Commit

Permalink
Fix MSVC compiler warning
Browse files Browse the repository at this point in the history
reg.: unreachable code (C4702)
  • Loading branch information
Jojo-Schmitz committed Jan 17, 2025
1 parent 88e08e8 commit 7efed82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mscore/pianoroll/pianoview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,8 @@ void PianoView::drawNoteBlock(QPainter* p, PianoItem* block)

QRect PianoView::boundingRect(Note* note, bool applyEvents)
{
for (NoteEvent& e : note->playEvents()) {
QRect bounds = boundingRect(note, &e, applyEvents);
return bounds;
}
if (note->playEvents().size())
return boundingRect(note, &note->playEvents().first(), applyEvents);
return QRect();
}

Expand Down

0 comments on commit 7efed82

Please sign in to comment.