From 795095a4ec9dff60bddb597ce5b39306b00a593b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 17 Sep 2018 23:20:03 +0200 Subject: [PATCH] Fix wxGenericListCtrl build with wxUSE_STD_CONTAINERS and C++98 Use wxShrinkToFit() instead of wxVector::shrink_to_fit() which is not defined in this build configuration. This was broken by recent 2af7e38153023a40bb16d4580f85361adef5f81b. See https://github.com/wxWidgets/wxWidgets/pull/924 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 55f461540d..c60d83f45e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1707,7 +1707,7 @@ wxListLineData *wxListMainWindow::GetDummyLine() const // don't waste extra memory -- there never going to be anything // else/more in this array - self->m_lines.shrink_to_fit(); + wxShrinkToFit(self->m_lines); } return m_lines[0];