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

Add const to GetName functions #1487

Merged
merged 3 commits into from
Feb 23, 2024
Merged

Add const to GetName functions #1487

merged 3 commits into from
Feb 23, 2024

Conversation

jeremylt
Copy link
Member

Fixes #1486

These functions shouldn't have allowed this mutation at any point.

Copy link
Collaborator

@jrwrigh jrwrigh left a comment

Choose a reason for hiding this comment

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

TIL a reason to have a const in a struct.

LGTM!

@jeremylt jeremylt merged commit 2004a82 into main Feb 23, 2024
28 checks passed
@jeremylt jeremylt deleted the jeremy/field-name-const branch February 23, 2024 18:42
Comment on lines +61 to 63
char *kernel_path;

CeedCallBackend(CeedQFunctionGetSourcePath(qf, &kernel_path));
Copy link
Member

Choose a reason for hiding this comment

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

Should this be mutable?

Copy link
Member Author

Choose a reason for hiding this comment

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

Aww crap, I missed one. Thanks. I'll spin up a follow-up PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QFunction/OperatorFieldGetName
3 participants