Skip to content

Commit

Permalink
storage: please the code coverage tool
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 23, 2024
1 parent 0d7c437 commit 15fe6fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/entt/entity/storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,14 @@ class basic_storage: public basic_sparse_set<Entity, typename std::allocator_tra
allocator_type allocator{get_allocator()};
entt::uninitialized_construct_using_allocator(to_address(assure_at_least(to)), allocator, std::move(elem));
alloc_traits::destroy(allocator, std::addressof(elem));
return;
} else {
using std::swap;
swap(elem, element_at(to));
}
} else {
using std::swap;
swap(elem, element_at(to));
}

using std::swap;
swap(elem, element_at(to));
}
}

Expand Down

0 comments on commit 15fe6fe

Please sign in to comment.