mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Everywhere: Remove needless copies of Error / ErrorOr instances
Either take the underlying objects with release_* methods or move() the instances around.
This commit is contained in:
parent
52687814ea
commit
4a916cd379
28 changed files with 69 additions and 77 deletions
|
@ -238,8 +238,8 @@ public:
|
|||
|
||||
void request_file(Web::FileRequest request) override
|
||||
{
|
||||
auto const file = Core::System::open(request.path(), O_RDONLY);
|
||||
request.on_file_request_finish(file);
|
||||
auto file = Core::System::open(request.path(), O_RDONLY);
|
||||
request.on_file_request_finish(move(file));
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue