Skip to content

Commit

Permalink
Merge pull request musescore#23745 from Jojo-Schmitz/compiler-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Aug 13, 2024
2 parents 611205a + ae339e0 commit f8ea319
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/engraving/dom/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3932,7 +3932,7 @@ void Score::cmdCreateTuplet(ChordRest* ocr, Tuplet* tuplet)
// cmdExchangeVoice
//---------------------------------------------------------

void Score::cmdExchangeVoice(int s, int d)
void Score::cmdExchangeVoice(voice_idx_t s, voice_idx_t d)
{
if (!selection().isRange()) {
MScore::setError(MsError::NO_STAFF_SELECTED);
Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/score.h
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ class Score : public EngravingObject, public muse::Injectable
void cmdSlashFill();
void cmdSlashRhythm();
void cmdResequenceRehearsalMarks();
void cmdExchangeVoice(int, int);
void cmdExchangeVoice(voice_idx_t, voice_idx_t);
void cmdRemoveEmptyTrailingMeasures();
void cmdRealizeChordSymbols(bool lit = true, Voicing v = Voicing(-1), HDuration durationType = HDuration(-1));

Expand Down
4 changes: 0 additions & 4 deletions src/engraving/rendering/dev/chordlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1539,10 +1539,6 @@ void ChordLayout::layoutChords1(LayoutContext& ctx, Segment* segment, staff_idx_
std::vector<Note*> downStemNotes;
int upVoices = 0;
int downVoices = 0;
// Fret width plus white background box for TAB
const double fretBackground = ctx.conf().styleS(Sid::tabFretPadding).val() * staff->spatium(tick);
// double nominalWidth = !isTab ? ctx.conf().noteHeadWidth() * staff->staffMag(tick)
// : (ctx.conf().fretWidth(staffType) + 2 * fretBackground) * staff->staffMag(tick);
double nominalWidth = ctx.conf().noteHeadWidth() * staff->staffMag(tick);
double maxUpWidth = 0.0;
double maxDownWidth = 0.0;
Expand Down

0 comments on commit f8ea319

Please sign in to comment.