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

clang-tidy: pass by value #1712

Merged
merged 1 commit into from
Jun 27, 2021
Merged

clang-tidy: pass by value #1712

merged 1 commit into from
Jun 27, 2021

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Jun 10, 2021

Found with modernize-pass-by-value

Signed-off-by: Rosen Penev rosenp@gmail.com

@codecov
Copy link

codecov bot commented Jun 10, 2021

Codecov Report

Merging #1712 (11bb373) into main (4a654e4) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1712   +/-   ##
=======================================
  Coverage   66.85%   66.85%           
=======================================
  Files         151      151           
  Lines       20729    20729           
=======================================
  Hits        13858    13858           
  Misses       6871     6871           
Impacted Files Coverage Δ
src/tiffcomposite_int.hpp 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a654e4...11bb373. Read the comment docs.

Comment on lines +400 to +402
Key(std::string m, uint32_t e, IfdId g) : m_(std::move(m)), e_(e), g_(g)
{
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Key(std::string m, uint32_t e, IfdId g) : m_(std::move(m)), e_(e), g_(g)
{
}
Key(std::string m, uint32_t e, IfdId g) : m_(std::move(m)), e_(e), g_(g){}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

git clang-format is what sets it to this.

Found with modernize-pass-by-value

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@hassec hassec merged commit 9210fb8 into Exiv2:main Jun 27, 2021
@neheb neheb deleted the val2 branch June 27, 2021 08:29
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.

2 participants