8000 Update to C++20 standard by mike-spa · Pull Request #28014 · musescore/MuseScore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update to C++20 standard #28014

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mike-spa
Copy link
Contributor

There's a contingent reason why this came up now (I'd like to use a C++20 feature to solve a separate issue I'm working on).

But more generally, this is an upgrade that we would have to do anyway, at some point, so why not try.

@mike-spa mike-spa force-pushed the updateToCPP20Standard branch 6 times, most recently from 7ba9cc7 to f7b4c61 Compare May 15, 2025 12:17
@mike-spa mike-spa force-pushed the updateToCPP20Standard branch from f7b4c61 to d8dce0e Compare May 16, 2025 08:13
@@ -535,7 +535,7 @@ void BrailleEngravingItemList::addEngravingItem(EngravingItem* el, const QString
//Manual doubling slashes '\' because Regex doesn't work. Don't know why.
QString txt = QString();
for (int i=0; i < braille.length(); i++) {
if (braille.at(i) == '\\') {
if (braille.at(i) == QString('\\')) {
Copy link

Choose a reason for hiding this comment

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

The declaration is:
const QChar at(qsizetype position) const
Hence this should have been
if (braille.at(i) == QChar('\\')) {
Or even, if it does not break the style,
if (braille[i] == QChar('\\')) {

@@ -535,7 +535,7 @@ void BrailleEngravingItemList::addEngravingItem(EngravingItem* el, const QString
//Manual doubling slashes '\' because Regex doesn't work. Don't know why.
QString txt = QString();
Copy link

Choose a reason for hiding this comment

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

Tautological. Default constructor creates a null string.
QString txt;

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.

2 participants
0