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

Fix url_search_params move constructor #29

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Fix url_search_params move constructor #29

merged 2 commits into from
Nov 13, 2023

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented Nov 13, 2023

url_search_params move constructor has been modified to not copy the url_ptr_ value, but to assign nullptr to it. How the copy constructor and assignment operator behave.

This allowed to simplify the url::search_params()&& function.

url_search_params move constructor has been modified to not copy the
url_ptr_ value, but to assign nullptr to it. How the copy constructor
and assignment operator behave.

This allowed to simplify the url::search_params()&& function.
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d9928eb) 99.73% compared to head (63e7011) 99.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage   99.73%   99.73%           
=======================================
  Files          16       16           
  Lines        2234     2236    +2     
=======================================
+ Hits         2228     2230    +2     
  Misses          6        6           
Files Coverage Δ
include/upa/url.h 99.74% <100.00%> (-0.01%) ⬇️
include/upa/url_search_params.h 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rmisev rmisev changed the title Fix url_search_params move constructor Fix url_search_params move constructor Nov 13, 2023
@rmisev rmisev merged commit 63e7011 into main Nov 13, 2023
22 checks passed
@rmisev rmisev deleted the usp-move-ctor branch November 13, 2023 19:03
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.

1 participant