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

direct initialize some structs #2570

Merged
merged 1 commit into from
Apr 3, 2023
Merged

direct initialize some structs #2570

merged 1 commit into from
Apr 3, 2023

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Mar 31, 2023

No description provided.

@ghost
Copy link

ghost commented Mar 31, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #2570 (423774a) into main (0fa22ed) will increase coverage by 0.02%.
The diff coverage is 41.17%.

❗ Current head 423774a differs from pull request most recent head 1403a43. Consider uploading reports for the commit 1403a43 to get more accurate results

@@            Coverage Diff             @@
##             main    #2570      +/-   ##
==========================================
+ Coverage   63.90%   63.93%   +0.02%     
==========================================
  Files         103      103              
  Lines       22393    22381      -12     
  Branches    10824    10823       -1     
==========================================
- Hits        14310    14309       -1     
+ Misses       5864     5851      -13     
- Partials     2219     2221       +2     
Impacted Files Coverage Δ
include/exiv2/bmffimage.hpp 100.00% <ø> (ø)
include/exiv2/error.hpp 54.54% <ø> (ø)
src/basicio.cpp 50.58% <ø> (ø)
src/cr2header_int.hpp 0.00% <ø> (ø)
src/epsimage.cpp 1.93% <0.00%> (+0.05%) ⬆️
src/image_int.hpp 100.00% <ø> (ø)
src/makernote_int.cpp 65.85% <0.00%> (-0.50%) ⬇️
src/nikonmn_int.cpp 61.09% <ø> (ø)
src/sonymn_int.cpp 79.96% <ø> (ø)
src/tiffcomposite_int.hpp 97.27% <ø> (ø)
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@neheb neheb force-pushed the movvv branch 10 times, most recently from f2d5780 to 423774a Compare April 1, 2023 00:13
@piponazo
Copy link
Collaborator

piponazo commented Apr 1, 2023

Ey @neheb , in this PR you are mixing 2 different unrelated topics:

  • Initialization of structures
  • Remove constness from some variable members.

The 1st one I would approve without blinking my eyes. The 2nd one is a bit more controversial. What's your rationale to remove const from those variables? I guess the original authors of those pieces of code gave a lot of though to use const in there.

@neheb
Copy link
Collaborator Author

neheb commented Apr 1, 2023

I can split up into separate PRs.

const removal is done by https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members.html

@piponazo
Copy link
Collaborator

piponazo commented Apr 1, 2023

I can split up into separate PRs.

const removal is done by https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members.html

Sure, If you do that, I will approve quickly the 1st part :)

@neheb
Copy link
Collaborator Author

neheb commented Apr 1, 2023

I can split up into separate PRs.
const removal is done by https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members.html

Sure, If you do that, I will approve quickly the 1st part :)

Done.

@neheb neheb merged commit 233f404 into Exiv2:main Apr 3, 2023
@neheb neheb deleted the movvv branch April 3, 2023 13:51
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.

3 participants