summaryrefslogtreecommitdiff
path: root/src/vehicle_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/vehicle_gui.cpp
parent4b349c0f90c3f7b6a39171cec41cd98dcd0d88b7 (diff)
downloadopenttd-bfd79e59dc34314a089a0024af56d04d84456ebd.tar.xz
Codechange: Replace SmallVector::Clear() with std::vector::clear()
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index f4e766589..2ae385aa2 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -234,7 +234,7 @@ byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for, CargoID dest_cargo_t
/* Create a list of subtypes used by the various parts of v_for */
static SmallVector<StringID, 4> subtypes;
- subtypes.Clear();
+ subtypes.clear();
for (; v_from != NULL; v_from = v_from->HasArticulatedPart() ? v_from->GetNextArticulatedPart() : NULL) {
const Engine *e_from = v_from->GetEngine();
if (!e_from->CanCarryCargo() || !HasBit(e_from->info.callback_mask, CBM_VEHICLE_CARGO_SUFFIX)) continue;
@@ -406,7 +406,7 @@ struct RefitWindow : public Window {
*/
void BuildRefitList()
{
- for (uint i = 0; i < NUM_CARGO; i++) this->list[i].Clear();
+ for (uint i = 0; i < NUM_CARGO; i++) this->list[i].clear();
Vehicle *v = Vehicle::Get(this->window_number);
/* Check only the selected vehicles. */