diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-21 22:45:44 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 9cba6f71936207f11ad0d4ed752d82966087fab9 (patch) | |
tree | d36afb33bb2e40118ed7fd7dc5c68fb70e5373f3 /src/town_gui.cpp | |
parent | bfd79e59dc34314a089a0024af56d04d84456ebd (diff) | |
download | openttd-9cba6f71936207f11ad0d4ed752d82966087fab9.tar.xz |
Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 5cc934f0a..b9aa938e6 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -657,7 +657,7 @@ private: *this->towns.Append() = t; } - this->towns.Compact(); + this->towns.shrink_to_fit(); this->towns.RebuildDone(); this->vscroll->SetCount(this->towns.Length()); // Update scrollbar as well. } |