Use wxVector::shrink_to_fit() directly

Don't use deprecated wxShrinkToFit() as now wxVector always has this
member function because it is available even in STL build when using
C++11.
This commit is contained in:
Vadim Zeitlin 2022-10-09 23:47:36 +02:00
parent dd404fdd77
commit b83178086d
2 changed files with 2 additions and 6 deletions

View file

@ -1728,7 +1728,7 @@ wxListLineData *wxListMainWindow::GetDummyLine() const
// don't waste extra memory -- there never going to be anything
// else/more in this array
wxShrinkToFit(self->m_lines);
self->m_lines.shrink_to_fit();
}
return m_lines[0];