Skip to content

Conversation

@monnerat
Copy link
Contributor

Also constify an internal prototype.

Some public prototypes do not declare return values or out parameters as
const where they should be.
Avoid changing the public interface, but document those values as
read-only.
Although finally stored as a non-const pointer, the string is intended
to be left unchanged.

This change allows using the function without the need of a cast for
const pointers.
@bagder bagder closed this in 92e6782 Nov 25, 2025
bagder pushed a commit that referenced this pull request Nov 25, 2025
Although finally stored as a non-const pointer, the string is intended
to be left unchanged.

This change allows using the function without the need of a cast for
const pointers.

Closes #19692
@monnerat
Copy link
Contributor Author

Thanks for merge :-)

@monnerat monnerat deleted the const branch November 25, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants