mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 00:57:43 +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
|
@ -33,7 +33,7 @@ ErrorOr<void> Shader::compile()
|
|||
if (object_file_or_error.is_error()) {
|
||||
m_compile_status = false;
|
||||
m_info_log = compiler.messages();
|
||||
return object_file_or_error.error();
|
||||
return object_file_or_error.release_error();
|
||||
}
|
||||
|
||||
m_object_file = object_file_or_error.release_value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue