Skip to content

Commit

Permalink
Fix MSVC compiler warnings
Browse files Browse the repository at this point in the history
reg.: declaration hides class member (C4458)
  • Loading branch information
Jojo-Schmitz committed May 16, 2024
1 parent 48abfb8 commit 3953a68
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/app/internal/consoleapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ void ConsoleApp::perform()
// ====================================================
// Process Autobot
// ====================================================
CmdOptions::Autobot autobot = options.autobot;
if (!autobot.testCaseNameOrFile.isEmpty()) {
QMetaObject::invokeMethod(qApp, [this, autobot]() {
processAutobot(autobot);
CmdOptions::Autobot ab = options.autobot;
if (!ab.testCaseNameOrFile.isEmpty()) {
QMetaObject::invokeMethod(qApp, [this, ab]() {
processAutobot(ab);
}, Qt::QueuedConnection);
} else {
// ====================================================
Expand Down
4 changes: 2 additions & 2 deletions src/notation/view/widgets/measureproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ void MeasurePropertiesDialog::initMeasure()
return;
}

INotationInteraction::HitElementContext context = m_notation->interaction()->hitElementContext();
mu::engraving::Measure* measure = mu::engraving::toMeasure(context.element);
INotationInteraction::HitElementContext ctx = m_notation->interaction()->hitElementContext();
mu::engraving::Measure* measure = mu::engraving::toMeasure(ctx.element);

if (!measure) {
INotationSelectionPtr selection = m_notation->interaction()->selection();
Expand Down
10 changes: 5 additions & 5 deletions src/playback/internal/playbackcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1467,14 +1467,14 @@ msecs_t PlaybackController::beatToMilliseconds(int measureIndex, int beatIndex)

double PlaybackController::tempoMultiplier() const
{
INotationPlaybackPtr playback = notationPlayback();
return playback ? playback->tempoMultiplier() : 1.0;
INotationPlaybackPtr pb = notationPlayback();
return pb ? pb->tempoMultiplier() : 1.0;
}

void PlaybackController::setTempoMultiplier(double multiplier)
{
INotationPlaybackPtr playback = notationPlayback();
if (!playback) {
INotationPlaybackPtr pb = notationPlayback();
if (!pb) {
return;
}

Expand All @@ -1485,7 +1485,7 @@ void PlaybackController::setTempoMultiplier(double multiplier)
pause();
}

playback->setTempoMultiplier(multiplier);
pb->setTempoMultiplier(multiplier);
seek(tick);
updateLoop();

Expand Down

0 comments on commit 3953a68

Please sign in to comment.