Skip to content

[MU3] Fix some compiler warnings #6865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2020

Conversation

Jojo-Schmitz
Copy link
Contributor

No description provided.

@Jojo-Schmitz Jojo-Schmitz changed the title {MU3] Fix some compiler warnings [MU3] Fix some compiler warnings Nov 15, 2020
@@ -622,15 +622,15 @@ int InstrumentsWidget::findPrvItem(PartListItem* pli, int number)
const int last = number ? number - 1 : partiturList->topLevelItemCount();
QTreeWidgetItem* item = nullptr;
for (int idx = 0; --number && (item = partiturList->topLevelItem(idx)); ++idx) {
PartListItem* pli = (PartListItem*)item;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the problem this rename is solving? Just curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSVC complains the variable name to be the same as the function's parameter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSVC doesn't like shadowing then. Something to keep in mind.
By the way, it might be solved also by the new PR I'm creating for ScoreOrdering (is related to it).

@igorkorsukov igorkorsukov merged commit 0b5409e into musescore:3.x Nov 15, 2020
@Jojo-Schmitz Jojo-Schmitz deleted the compiler-warnings branch November 15, 2020 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants