Skip to content

Commit

Permalink
moving over copying
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Sep 10, 2024
1 parent fb89ab6 commit a9b1ba0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class SmallVector
for (size_t count = 0; count < internal_array().array_size_used; ++count)
moving.push_back (std::move (internal_array().array[count]));

Check warning on line 511 in modules/common/chowdsp_data_structures/Structures/chowdsp_SmallVector.h

View check run for this annotation

Codecov / codecov/patch

modules/common/chowdsp_data_structures/Structures/chowdsp_SmallVector.h#L511

Added line #L511 was not covered by tests
}
internal_data = moving;
internal_data = std::move (moving);

Check warning on line 513 in modules/common/chowdsp_data_structures/Structures/chowdsp_SmallVector.h

View check run for this annotation

Codecov / codecov/patch

modules/common/chowdsp_data_structures/Structures/chowdsp_SmallVector.h#L513

Added line #L513 was not covered by tests
}

void move_to_array()
Expand All @@ -526,7 +526,7 @@ class SmallVector
for (size_t count = 0; count < moving.array_size_used; ++count)
moving.array[count] = std::move (internal_vector()[count]);
}
internal_data = moving;
internal_data = std::move (moving);
}

[[nodiscard]] bool usingArray() const noexcept
Expand Down

0 comments on commit a9b1ba0

Please sign in to comment.