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

FIxes Missing Access Modifier Warnings #209

Merged
merged 4 commits into from
Jan 17, 2022

Conversation

charleyah
Copy link
Contributor

This PR is a refactor across SFML.Net that resolves all 457 warnings of missing access modifiers (IDE0040). My original motive to do this was due to missing access modifiers being part of bug #207.

All 457 warnings are missing access modifiers for the pinvoke methods and so this PR adds private modifier to all pinvoke methods as thats the default when not specified.

Some diffs show entire source files being changed which is a result of some source files having mixed file endings and I've set it to whatever I found to be the common in the relevant project.

In terms of testing, I've done some basic feature tests such as shape rendering and playing music. As this is a sweeping change across the entire project, I encourage some thorough code reviewing and understand if this PR gets put on hold for a future major version change.

This wasn't just a find and replace effort and was an opportunity to also check over every PInvoke method and their CSFML counterparts, which has uncovered other issues of various severity that I'll raise separately after creating this PR.

Adds missing access modifiers to pinvoke methods
Adds missing access modifiers to pinvoke methods
Adds missing access modifiers to pinvoke methods
adds missing access modifiers to pinvoke methods
@eXpl0it3r eXpl0it3r added the Bug label Jan 13, 2022
Copy link
Member

@eXpl0it3r eXpl0it3r left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks to the "hide white space" feature, it was quite easy to review 👍

@eXpl0it3r eXpl0it3r added Feature New functionality or extending of an existing one and removed Bug labels Jan 13, 2022
@eXpl0it3r eXpl0it3r merged commit 95fab66 into SFML:master Jan 17, 2022
@eXpl0it3r
Copy link
Member

Thanks again for this clean up 🧹

@charleyah charleyah deleted the refactor/access-modifier-warnings branch August 9, 2023 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality or extending of an existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants