X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3614a8dc02363a8c5a3b5eeff8490a9e55b4ac1f..cdc93e0c1606561ab66a73d81fc174f7d40361cd:/samples/listctrl/listtest.cpp?ds=inline diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 59ff8c0a97..11f2dab732 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -656,10 +656,12 @@ void MyFrame::OnDeleteAll(wxCommandEvent& WXUNUSED(event)) { wxStopWatch sw; + size_t itemCount = m_listCtrl->GetItemCount(); + m_listCtrl->DeleteAllItems(); m_logWindow->WriteText(wxString::Format(_T("Deleting %d items took %ld ms\n"), - m_listCtrl->GetItemCount(), + itemCount, sw.Time())); }