Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()
This commit is contained in:
@@ -397,7 +397,7 @@ class NetworkContentListWindow : public Window, ContentCallback {
|
||||
this->SetWidgetDisabledState(WID_NCL_SEARCH_EXTERNAL, this->auto_select && all_available);
|
||||
|
||||
this->FilterContentList();
|
||||
this->content.Compact();
|
||||
this->content.shrink_to_fit();
|
||||
this->content.RebuildDone();
|
||||
this->SortContentList();
|
||||
|
||||
|
@@ -267,7 +267,7 @@ protected:
|
||||
this->servers.SetFilterState(false);
|
||||
}
|
||||
|
||||
this->servers.Compact();
|
||||
this->servers.shrink_to_fit();
|
||||
this->servers.RebuildDone();
|
||||
this->vscroll->SetCount(this->servers.Length());
|
||||
|
||||
|
Reference in New Issue
Block a user