Skip to content

Commit

Permalink
Fix MSVC compiler warnings
Browse files Browse the repository at this point in the history
reg.: 'argument': conversion from 'size_t' to 'int', possible loss of data (C4267)
  • Loading branch information
Jojo-Schmitz committed Aug 13, 2024
1 parent 294388a commit 369a27f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit 369a27f

Please sign in to comment.