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

Fixing wanings by Infer code analysis #557 #558

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

Stefan-TU
Copy link
Contributor

Closes #557

Proposed changes

  • Fixed warnings and problems detected by Infer code analysis

@pktiuk
Copy link
Member

pktiuk commented Oct 11, 2022

I think you should check https://github.com/AntiMicroX/antimicrox/wiki/Coding-guidelines#code-style
Code formatting shouldn't be done by hand

Just run clang-format in project directory

@Stefan-TU
Copy link
Contributor Author

Yes, sorry for the inconvenience...

src/inputdevice.cpp Outdated Show resolved Hide resolved
src/joybutton.cpp Outdated Show resolved Hide resolved
src/joycontrolstick.cpp Outdated Show resolved Hide resolved
src/joydpad.cpp Outdated Show resolved Hide resolved
src/xml/inputdevicexml.cpp Outdated Show resolved Hide resolved
Copy link
Member

@pktiuk pktiuk left a comment

Choose a reason for hiding this comment

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

I found some minor mistakes and places for improvements in your changes :)
Could you also squash all of your changes into one commit with message:

chore: Fix infer code warnings

Copy link
Contributor Author

@Stefan-TU Stefan-TU left a comment

Choose a reason for hiding this comment

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

Alright, I've changed the code again, gonna commit again, it should be good now. I'm going to smash the commits then.

@pktiuk pktiuk merged commit a2dc31c into AntiMicroX:master Oct 11, 2022
@pktiuk
Copy link
Member

pktiuk commented Oct 11, 2022

Thank you for your contribution.
Feel free to check other issues if you want.

@Stefan-TU
Copy link
Contributor Author

Thank you for helpful review and tips :)

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

Successfully merging this pull request may close these issues.

FIx warnings and problems detected by Infer code analysis
2 participants