diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-09-19 13:01:57 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-09-30 14:00:06 +0100 |
commit | fe9731d32c554115724275968c7c06655ae024dd (patch) | |
tree | 2b23b65ee4f34bdf9f1bc456066bcb71473353b2 /src/town_gui.cpp | |
parent | 7b400d43c16dfea76ea3cebbe436281915f65dea (diff) | |
download | openttd-fe9731d32c554115724275968c7c06655ae024dd.tar.xz |
Fix: clang and MSVC warnings (glx)
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index e32e967f7..6cb449ab5 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -965,7 +965,7 @@ public: this->vscroll->SetCapacityFromWidget(this, WID_TD_LIST); } - virtual void OnEditboxChanged(int wid) + void OnEditboxChanged(int wid) override { if (wid == WID_TD_FILTER) { this->string_filter.SetFilterTerm(this->townname_editbox.text.buf); @@ -1010,7 +1010,7 @@ public: this->towns.Sort(); this->towns.shrink_to_fit(); this->towns.RebuildDone(); - this->vscroll->SetCount(this->towns.size()); // Update scrollbar as well. + this->vscroll->SetCount((int)this->towns.size()); // Update scrollbar as well. } break; default: |