Skip to content

Commit 08a0aaf

Browse files
committed
Fix MSVC compiler warnings
reg,: declaration of 'timeSig' hides previous local declaration (C4456)
1 parent f55de28 commit 08a0aaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/engraving/tests/timesig_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ TEST_F(Engraving_TimesigTests, timesig_11)
313313
EXPECT_TRUE(score);
314314
score->doLayout();
315315

316-
TimeSig* timeSig = Factory::createTimeSig(score->dummy()->segment());
317-
timeSig->setSig(Fraction(5, 4));
316+
TimeSig* timeSig1 = Factory::createTimeSig(score->dummy()->segment());
317+
timeSig1->setSig(Fraction(5, 4));
318318

319319
TimeSig* timeSig2 = Factory::createTimeSig(score->dummy()->segment());
320320
timeSig2->setSig(Fraction(7, 8));
@@ -329,7 +329,7 @@ TEST_F(Engraving_TimesigTests, timesig_11)
329329

330330
// Add local timeSig to Clarinet staff at meas 3
331331
score->startCmd(TranslatableString::untranslatable("Engraving time signature tests"));
332-
score->cmdAddTimeSig(thirdMeas, clarinetStaff, timeSig, true);
332+
score->cmdAddTimeSig(thirdMeas, clarinetStaff, timeSig1, true);
333333
score->endCmd();
334334
// Check timeSig exist at meas 3 and is only on Clarinet
335335
Segment* timeSigSegment = thirdMeas->findSegmentR(SegmentType::TimeSig, Fraction(0, 1));

0 commit comments

Comments
 (0)