Fix: clang and MSVC warnings (glx)

This commit is contained in:
Charles Pigott
2019-09-19 13:01:57 +01:00
parent 7b400d43c1
commit fe9731d32c
3 changed files with 4 additions and 4 deletions

View File

@@ -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: