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

Make FileUtils::openFileStream a const method #1514

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

rh101
Copy link
Contributor

@rh101 rh101 commented Dec 13, 2023

Which branch your pull-request should merge into?

  • dev: Current 2.x BugFixs or Features

Describe your changes

FileUtils::openFileStream() should be a const method, since it does not modify any data within that class. Also, it enables its usage from const methods in the same class, otherwise there is a compile error when attempting to call it directly within the same class (relevant to sub-classes of FileUtils).

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • I have checked readme and add important infos to this PR (if it needed).
  • I have added/adapted some tests too.

@halx99 halx99 merged commit 2b01fa2 into axmolengine:dev Dec 13, 2023
7 of 8 checks passed
@halx99 halx99 added this to the 2.1.0-LTS milestone Dec 13, 2023
@halx99 halx99 added the enhancement New feature or request label Dec 13, 2023
@rh101 rh101 deleted the openfilestream-const branch December 13, 2023 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants