summaryrefslogtreecommitdiff
path: root/src/autoreplace_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/autoreplace_gui.cpp
parent4b349c0f90c3f7b6a39171cec41cd98dcd0d88b7 (diff)
downloadopenttd-bfd79e59dc34314a089a0024af56d04d84456ebd.tar.xz
Codechange: Replace SmallVector::Clear() with std::vector::clear()
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index 3a8a7543d..356058e93 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -123,7 +123,7 @@ class ReplaceVehicleWindow : public Window {
byte side = draw_left ? 0 : 1;
GUIEngineList *list = &this->engines[side];
- list->Clear();
+ list->clear();
const Engine *e;
FOR_ALL_ENGINES_OF_TYPE(e, type) {
@@ -170,7 +170,7 @@ class ReplaceVehicleWindow : public Window {
/* Either we got a request to rebuild the right engines list, or the left engines list selected a different engine */
if (this->sel_engine[0] == INVALID_ENGINE) {
/* Always empty the right engines list when nothing is selected in the left engines list */
- this->engines[1].Clear();
+ this->engines[1].clear();
this->sel_engine[1] = INVALID_ENGINE;
} else {
if (this->reset_sel_engine && this->sel_engine[0] != INVALID_ENGINE) {