Skip to content

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
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