summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-21 22:45:44 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit9cba6f71936207f11ad0d4ed752d82966087fab9 (patch)
treed36afb33bb2e40118ed7fd7dc5c68fb70e5373f3 /src/industry_gui.cpp
parentbfd79e59dc34314a089a0024af56d04d84456ebd (diff)
downloadopenttd-9cba6f71936207f11ad0d4ed752d82966087fab9.tar.xz
Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 4fa350128..eb6018973 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1209,7 +1209,7 @@ protected:
*this->industries.Append() = i;
}
- this->industries.Compact();
+ this->industries.shrink_to_fit();
this->industries.RebuildDone();
this->vscroll->SetCount(this->industries.Length()); // Update scrollbar as well.
}