Преглед изворни кода

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

Michele Caini пре 2 година
родитељ
комит
c659fad434
1 измењених фајлова са 1 додато и 2 уклоњено
  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);
 }
 }
 
 
 /**
 /**