LibWeb: Move internal response in FilteredResponse create() functions
This commit is contained in:
parent
02a4cba086
commit
9ad6031bca
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ ErrorOr<NonnullRefPtr<BasicFilteredResponse>> BasicFilteredResponse::create(Nonn
|
|||
TRY(header_list->append(header));
|
||||
}
|
||||
|
||||
return adopt_ref(*new BasicFilteredResponse(internal_response, move(header_list)));
|
||||
return adopt_ref(*new BasicFilteredResponse(move(internal_response), move(header_list)));
|
||||
}
|
||||
|
||||
BasicFilteredResponse::BasicFilteredResponse(NonnullRefPtr<Response> internal_response, NonnullRefPtr<HeaderList> header_list)
|
||||
|
@ -162,7 +162,7 @@ ErrorOr<NonnullRefPtr<CORSFilteredResponse>> CORSFilteredResponse::create(Nonnul
|
|||
TRY(header_list->append(header));
|
||||
}
|
||||
|
||||
return adopt_ref(*new CORSFilteredResponse(internal_response, move(header_list)));
|
||||
return adopt_ref(*new CORSFilteredResponse(move(internal_response), move(header_list)));
|
||||
}
|
||||
|
||||
CORSFilteredResponse::CORSFilteredResponse(NonnullRefPtr<Response> internal_response, NonnullRefPtr<HeaderList> header_list)
|
||||
|
|
Loading…
Add table
Reference in a new issue