Codechange: Replaced SmallVector::Find() with std::find()

This commit is contained in:
Henry Wilson
2019-02-20 19:27:10 +00:00
committed by PeterN
parent e0c58bf5ee
commit 2bc2de9034
9 changed files with 41 additions and 37 deletions

View File

@@ -1486,8 +1486,10 @@ private:
this->avails.Sort();
if (this->avail_sel != NULL) {
this->avail_pos = this->avails.FindIndex(this->avail_sel);
if (this->avail_pos < 0) this->avail_sel = NULL;
this->avail_pos = find_index(this->avails, this->avail_sel);
if (this->avail_pos == -1) {
this->avail_sel = NULL;
}
}
this->vscroll2->SetCount(this->avails.size()); // Update the scrollbar