Codechange: Replaced SmallVector::Reset() with std::vector::clear() + shrink_to_fit()

This commit is contained in:
Henry Wilson
2018-09-23 17:16:49 +01:00
committed by PeterN
parent bad2c2154b
commit f3938fdb83
7 changed files with 12 additions and 15 deletions

View File

@@ -28,7 +28,8 @@ static const WChar STATE_QUOTE2 = '"';
*/
void StringFilter::SetFilterTerm(const char *str)
{
this->word_index.Reset();
this->word_index.clear();
this->word_index.shrink_to_fit();
this->word_matches = 0;
free(this->filter_buffer);