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

[c++] Use const references and std::string_view in create function #3482

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

XanthosXanthopoulos
Copy link
Collaborator

Replace unnecessary std::move and std::string with const references and std::string_view where possible in all the static create functions.

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.32%. Comparing base (a9c5aa4) to head (3e16241).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3482      +/-   ##
==========================================
+ Coverage   86.24%   86.32%   +0.07%     
==========================================
  Files          55       55              
  Lines        6305     6339      +34     
==========================================
+ Hits         5438     5472      +34     
  Misses        867      867              
Flag Coverage Δ
python 86.32% <ø> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
python_api 86.32% <ø> (+0.07%) ⬆️
libtiledbsoma ∅ <ø> (∅)

Copy link
Member

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

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

Fantastic -- thank you @XanthosXanthopoulos ! :)

@XanthosXanthopoulos XanthosXanthopoulos merged commit 5ddab04 into main Dec 19, 2024
15 checks passed
@XanthosXanthopoulos XanthosXanthopoulos deleted the xan/const-ref-replace branch December 19, 2024 15:25
github-actions bot pushed a commit that referenced this pull request Dec 19, 2024
#3482)

* Replace std::move with const references, replace string with string_view

* Replace string_view with string to avoid lifetime issues
johnkerl pushed a commit that referenced this pull request Dec 19, 2024
#3482) (#3483)

* Replace std::move with const references, replace string with string_view

* Replace string_view with string to avoid lifetime issues

Co-authored-by: XanthosXanthopoulos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants