mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
9cfd7a299c
I went through all callers of adopt_own() and replaced them with try_make<>() if possible or adopt_nonnull_own_or_enomem() else in cases where it was easy (i.e. in functions already returning ErrorOr). No intended behavior change.
18 lines
350 B
C++
18 lines
350 B
C++
/*
|
|
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGLSL/Compiler.h>
|
|
|
|
namespace GLSL {
|
|
|
|
ErrorOr<NonnullOwnPtr<ObjectFile>> Compiler::compile(Vector<String> const&)
|
|
{
|
|
// FIXME: implement this function
|
|
m_messages = {};
|
|
return try_make<ObjectFile>();
|
|
}
|
|
|
|
}
|