Browse Source

meta: make meta seq ::clear forward to ::resize

Michele Caini 2 years ago
parent
commit
c659fad434
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/entt/meta/meta.hpp

+ 1 - 2
src/entt/meta/meta.hpp

@@ -1849,8 +1849,7 @@ inline bool meta_sequence_container::resize(const size_type sz) {
  * @return True in case of success, false otherwise.
  * @return True in case of success, false otherwise.
  */
  */
 inline bool meta_sequence_container::clear() {
 inline bool meta_sequence_container::clear() {
-    void *elem = storage.data();
-    return elem && resize_fn(elem, 0u);
+    return resize(0u);
 }
 }
 
 
 /**
 /**