Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Jan 12, 2025
1 parent f558310 commit db61b9b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ruis/render/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class factory

virtual utki::shared_ref<vertex_array> create_vertex_array(
std::vector<utki::shared_ref<const ruis::render::vertex_buffer>> buffers,
const utki::shared_ref<const ruis::render::index_buffer>& indices,
utki::shared_ref<const ruis::render::index_buffer> indices,
vertex_array::mode rendering_mode
) = 0;

Expand Down
5 changes: 2 additions & 3 deletions src/ruis/render/vertex_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ using namespace ruis::render;

vertex_array::vertex_array(
buffers_type buffers,
// NOLINTNEXTLINE(modernize-pass-by-value)
const utki::shared_ref<const ruis::render::index_buffer>& indices,
utki::shared_ref<const ruis::render::index_buffer> indices,
mode rendering_mode
) :
buffers(std::move(buffers)),
indices(indices),
indices(std::move(indices)),
rendering_mode(rendering_mode)
{
if (this->buffers.empty()) {
Expand Down
6 changes: 5 additions & 1 deletion src/ruis/render/vertex_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ class vertex_array
const mode rendering_mode;

protected:
vertex_array(buffers_type buffers, const utki::shared_ref<const index_buffer>& indices, mode rendering_mode);
vertex_array(
buffers_type buffers, //
utki::shared_ref<const index_buffer> indices,
mode rendering_mode
);

public:
vertex_array(const vertex_array&) = delete;
Expand Down

0 comments on commit db61b9b

Please sign in to comment.