-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cppcheck and clazy warning fixes #2821
Conversation
Thanks for the PR. I think this should be discussed. some of the changes seems reasonable to me, but some not so much. For instance: imho good change:
imho not so good change:
|
reason for above change is that there is a function with name "value". So either the variable or the function name should be changed: flameshot/src/cli/commandlineparser.cpp Line 301 in d2273c6
I did some more variable renaming due to the same reason in other files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ElTh0r0 Thanks for contributing to Flameshot. Some of them you should revert - I left comments to let you know which. But I very much appreciate you changing the SIGNAL(...)
and SLOT(...)
syntax. This was something I was going to do but never got around to it.
@veracioux many thanks for the detailed review! Please check my changes after the last commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ElTh0r0 Thanks. All looks good now.
@veracioux should we proceed with the merge? |
* Cppcheck and clazy warning fixes * Clang-format * Revert QRect call by value * Revert QPoint call by value * Revert complained renamings --------- Co-authored-by: Haris Gušić <[email protected]> (cherry picked from commit f7e41f4)
I hope such kind of code quality improvements are wanted, since I'm touching many files with just "minor" changes.
This patch is mainly fixing warnings related to Cppcheck & Clazy passing args-by-ref / args-by-value, old style Qt signal/slots and using variable names same to function names.