From ae339e0f8451440a4acc0cb4b78acfa146159681 Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Sat, 10 Aug 2024 12:42:05 +0200 Subject: [PATCH] Fix MSVC compiler warnings reg.: 'argument': conversion from 'size_t' to 'int', possible loss of data (C4267) --- src/engraving/dom/edit.cpp | 2 +- src/engraving/dom/score.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engraving/dom/edit.cpp b/src/engraving/dom/edit.cpp index b6f238f876e5b..a341a64d205bc 100644 --- a/src/engraving/dom/edit.cpp +++ b/src/engraving/dom/edit.cpp @@ -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); diff --git a/src/engraving/dom/score.h b/src/engraving/dom/score.h index 7d05f5afa2a38..0bebe6473eb19 100644 --- a/src/engraving/dom/score.h +++ b/src/engraving/dom/score.h @@ -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));