summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-20 23:44:14 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitbfd79e59dc34314a089a0024af56d04d84456ebd (patch)
treed03559bac7a8c3f1d260cead2ed77791c03d37a5 /src/industry_gui.cpp
parent4b349c0f90c3f7b6a39171cec41cd98dcd0d88b7 (diff)
downloadopenttd-bfd79e59dc34314a089a0024af56d04d84456ebd.tar.xz
Codechange: Replace SmallVector::Clear() with std::vector::clear()
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 898786ff7..4fa350128 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1202,7 +1202,7 @@ protected:
void BuildSortIndustriesList()
{
if (this->industries.NeedRebuild()) {
- this->industries.Clear();
+ this->industries.clear();
const Industry *i;
FOR_ALL_INDUSTRIES(i) {
@@ -2414,7 +2414,7 @@ struct IndustryCargoesWindow : public Window {
_displayed_industries.reset();
_displayed_industries.set(it);
- this->fields.Clear();
+ this->fields.clear();
CargoesRow *row = this->fields.Append();
row->columns[0].MakeHeader(STR_INDUSTRY_CARGOES_PRODUCERS);
row->columns[1].MakeEmpty(CFT_SMALL_EMPTY);
@@ -2492,7 +2492,7 @@ struct IndustryCargoesWindow : public Window {
this->ind_cargo = cid + NUM_INDUSTRYTYPES;
_displayed_industries.reset();
- this->fields.Clear();
+ this->fields.clear();
CargoesRow *row = this->fields.Append();
row->columns[0].MakeHeader(STR_INDUSTRY_CARGOES_PRODUCERS);
row->columns[1].MakeEmpty(CFT_SMALL_EMPTY);