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

changed bool_to_string() to return const char* instead and use it in more cases #5385

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Sep 1, 2023

No description provided.

gui/cppchecklibrarydata.cpp Outdated Show resolved Hide resolved
Copy link
Owner

@danmar danmar left a comment

Choose a reason for hiding this comment

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

this is a refactoring and I want to release cppcheck soonish.. so I believe I will not merge this before the release.

@@ -857,11 +858,11 @@ bool ProjectFile::write(const QString &filename)
}

xmlWriter.writeStartElement(CppcheckXml::CheckHeadersElementName);
xmlWriter.writeCharacters(mCheckHeaders ? "true" : "false");
xmlWriter.writeCharacters(QString::fromStdString(bool_to_string(mCheckHeaders)));
Copy link
Owner

Choose a reason for hiding this comment

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

more unnecessary QString::fromStdString here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🤬

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@firewave firewave added the merge-after-next-release Wait with merging this PR until after the next Release label Sep 2, 2023
@firewave firewave marked this pull request as draft September 2, 2023 12:48
@firewave firewave marked this pull request as ready for review September 5, 2023 14:33
@firewave firewave removed the merge-after-next-release Wait with merging this PR until after the next Release label Sep 10, 2023
@danmar danmar merged commit 639a413 into danmar:main Sep 11, 2023
72 checks passed
@firewave firewave deleted the bool branch September 11, 2023 10:59
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