summaryrefslogtreecommitdiff
path: root/src/core/smallvec_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/smallvec_type.hpp')
-rw-r--r--src/core/smallvec_type.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp
index e71edf89f..f43265ebe 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -91,8 +91,8 @@ public:
*/
inline void Clear()
{
- for (uint i = 0; i < std::vector<T>::size(); i++) {
- free(std::vector<T>::operator[](i));
+ for (T p : *this) {
+ free(p);
}
std::vector<T>::clear();
@@ -121,8 +121,8 @@ public:
*/
inline void Clear()
{
- for (uint i = 0; i < std::vector<T>::size(); i++) {
- delete std::vector<T>::operator[](i);
+ for (T p : *this) {
+ delete p;
}
std::vector<T>::clear();