diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-23 17:16:49 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | f3938fdb838685e76bba78974bb6e90e9afc6e22 (patch) | |
tree | 38261fac99ecd7fefa295b3789d026e4c575053b /src/stringfilter.cpp | |
parent | bad2c2154b97613bd6a045cfe1f05cff876da1e4 (diff) | |
download | openttd-f3938fdb838685e76bba78974bb6e90e9afc6e22.tar.xz |
Codechange: Replaced SmallVector::Reset() with std::vector::clear() + shrink_to_fit()
Diffstat (limited to 'src/stringfilter.cpp')
-rw-r--r-- | src/stringfilter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stringfilter.cpp b/src/stringfilter.cpp index 6045c19ef..b12abff7f 100644 --- a/src/stringfilter.cpp +++ b/src/stringfilter.cpp @@ -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); |