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

Utility: more argv const in Arguments::parse #142

Merged
merged 1 commit into from
Jun 11, 2022

Conversation

sthalik
Copy link
Contributor

@sthalik sthalik commented Jun 11, 2022

No description provided.

@@ -873,7 +863,7 @@ class CORRADE_UTILITY_EXPORT Arguments {
* additional arguments are parsed, only `--help` option is set and
* @cpp true @ce is returned.
*/
bool tryParse(int argc, const char** argv);
bool tryParse(int argc, const char* const* argv);

/** @overload */
bool tryParse(int argc, char** argv) {
Copy link
Owner

Choose a reason for hiding this comment

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

Can you drop these as well? Thank you! 😊

@mosra mosra added this to the 2022.0a milestone Jun 11, 2022
@mosra mosra merged commit e616d62 into mosra:master Jun 11, 2022
@mosra
Copy link
Owner

mosra commented Jun 11, 2022

PR with a net negative line count is never bad :D Thank you.

Now I need to look where else I forgot to realize const char* const* is a thing,

@sthalik sthalik deleted the pr/parse-argv-const branch November 11, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants