Codechange: Replaced SmallVector::Resize() with std::vector::resize()

This commit is contained in:
Henry Wilson
2018-09-23 16:43:00 +01:00
committed by PeterN
parent a690936ed7
commit bad2c2154b
5 changed files with 4 additions and 13 deletions

View File

@@ -74,7 +74,7 @@ private:
}
if (index >= this->data.size() && index < Tmax_size) {
this->data.Resize(index + 1);
this->data.resize(index + 1);
}
return index;
}

View File

@@ -97,15 +97,6 @@ public:
return this->End() - to_add;
}
/**
* Set the size of the vector, effectively truncating items from the end or appending uninitialised ones.
* @param num_items Target size.
*/
inline void Resize(uint num_items)
{
std::vector<T>::resize(num_items);
}
/**
* Insert a new item at a specific position into the vector, moving all following items.
* @param item Position at which the new item should be inserted