Skip to content
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

[MU3] Fix MSVC compiler warnings #7249

Merged
merged 1 commit into from Jan 18, 2021

Conversation

Jojo-Schmitz
Copy link
Contributor

No description provided.

@@ -684,7 +684,7 @@ class MuseScore : public QMainWindow, public MuseScoreCore {
void loadFile(const QUrl&);
QTemporaryFile* getTemporaryScoreFileCopy(const QFileInfo& info, const QString& baseNameTemplate);
QNetworkAccessManager* networkManager();
virtual Score* openScore(const QString& fn, bool switchTab = true, const bool appendToExistingTabs = true);
virtual Score* openScore(const QString& fn, bool switchTab = true, const bool appendToExistingTabs = true) override;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Review needed, it does fix a compiler warning but I'm not sure whether we really want to override Ms::MuseScoreCore::openScore() from libmscore/musescoreCore.h line 45 here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Does it matter? I think it is going to be overridden with or without override

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was implicitly overridden, is now explcitly overridden, that apeases the compiler (i.e. no warning any more). Question is whether this really wanted.
I guess it is (and am relatively sure by now), as that other one is basically a dummy or stub.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm just saying even if that wasn't what we want, it still would not be solved (returned to the behaviour of parent class) just by not adding override. Am I wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, you're not wrong. And that's exactly why I started this discussion here ;-)

@vpereverzev vpereverzev merged commit 5bf5cd2 into musescore:3.x Jan 18, 2021
@Jojo-Schmitz Jojo-Schmitz deleted the compiler-warnings branch January 18, 2021 16:34
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.

None yet

3 participants