AK: Remove try_ prefix from FixedArray creation functions

This commit is contained in:
Linus Groh 2023-01-28 20:12:17 +00:00 committed by Jelle Raaijmakers
commit 9c08bb9555
Notes: sideshowbarker 2024-07-17 01:02:18 +09:00
26 changed files with 57 additions and 59 deletions

View file

@ -78,9 +78,9 @@ ErrorOr<NonnullRefPtr<Mesh>> WavefrontOBJLoader::load(Core::File& file)
return Error::from_string_literal("Wavefront: Malformed face line.");
}
auto vertex_indices = TRY(FixedArray<GLuint>::try_create(number_of_vertices));
auto tex_coord_indices = TRY(FixedArray<GLuint>::try_create(number_of_vertices));
auto normal_indices = TRY(FixedArray<GLuint>::try_create(number_of_vertices));
auto vertex_indices = TRY(FixedArray<GLuint>::create(number_of_vertices));
auto tex_coord_indices = TRY(FixedArray<GLuint>::create(number_of_vertices));
auto normal_indices = TRY(FixedArray<GLuint>::create(number_of_vertices));
for (size_t i = 0; i < number_of_vertices; ++i) {
auto vertex_parts = face_line.at(i).split_view('/', SplitBehavior::KeepEmpty);