-
Notifications
You must be signed in to change notification settings - Fork 512
[SDK] Misc cleanup in attribute_utils.h #3716
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3716 +/- ##
==========================================
+ Coverage 89.95% 90.00% +0.06%
==========================================
Files 225 225
Lines 7103 7099 -4
==========================================
Hits 6389 6389
+ Misses 714 710 -4
🚀 New features to boost your workflow:
|
owent
left a comment
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 once the formatting issue is resolved
2104d07 to
905ee82
Compare
marcalff
left a comment
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, thanks for the cleanup
|
See clang-format, there is an extra blank line that needs to be removed. Will merge after that, congratulations on your first merged PR. |
- prevent superfluous copy in construction of OwnedAttributeValue with std::string or span - combined identical lambdas of both lamdas - use const-ref - removed unneeded (stateless) members
905ee82 to
3222db5
Compare
- prevent superfluous copy in construction of OwnedAttributeValue with std::string or span - combined identical lambdas of both lamdas - use const-ref - removed unneeded (stateless) members
Fixes # (issue)
none
Changes
Regarding the 2 constructors, IMO the pointer constructor is superfluous. Unfortunately it is being referenced already. So I'm not sure whether it's allowed to remove it.
Details:
const std::vector<T> copy(vals.begin(), vals.end());this const prevents from moving