-
Notifications
You must be signed in to change notification settings - Fork 276
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issues detected with PVS-Studio + other little improvements #1689
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1689 +/- ##
==========================================
- Coverage 66.90% 66.90% -0.01%
==========================================
Files 151 151
Lines 20781 20762 -19
==========================================
- Hits 13903 13890 -13
+ Misses 6878 6872 -6
Continue to review full report at Codecov.
|
Looks good. |
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.
Awesome stuff @piponazo 馃憤
I've only found a few small nitpicks, thus I'll just approve this and leave it up to you if you want to accept any of my comments 馃槈
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.
Looks good on the whole. Were these changes suggested by pvs-studio as well or only the issues identified by it?
Most of the issues were identified via PVS-Studio and I wrote a suffix in the commit message. Although I might have forgotten to mark some of the commits with that prefix |
The width & height variables in the TiffImage class need to be mutable to be able to change their values on the getters pixelHeight() and pixelWidth() ... Do not ask me why ...
cb99031
to
b2daf20
Compare
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.
LGTM 馃憤
In this PR I am fixing several issues detected with PVS-Studio and few other issues detected while doing this work. Please review the changes commit per commit, since each one does something completely different.
https://pvs-studio.com/en
Note that I got a free PVS-Studio license for Exiv2 to my personal email account. I need to check if we can include this license to be used in CI and if other Exiv2 collaborators could use it or not. I will investigate that in the future 馃槈