From: Vadim Zeitlin Date: Mon, 23 Mar 2009 12:18:51 +0000 (+0000) Subject: initialize NUM_COLS correctly in columns order test (closes #10630) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ffdb0ee5abf4b3583cd8cbbd485f48d356b4b395 initialize NUM_COLS correctly in columns order test (closes #10630) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/controls/listctrltest.cpp b/tests/controls/listctrltest.cpp index 5e615eb283..fff36a4d7a 100644 --- a/tests/controls/listctrltest.cpp +++ b/tests/controls/listctrltest.cpp @@ -83,12 +83,13 @@ void ListCtrlTestCase::tearDown() void ListCtrlTestCase::ColumnsOrder() { - static const int NUM_COLS; int n; wxListItem li; li.SetMask(wxLIST_MASK_TEXT); // first set up some columns + static const int NUM_COLS = 3; + m_list->InsertColumn(0, "Column 0"); m_list->InsertColumn(1, "Column 1"); m_list->InsertColumn(2, "Column 2");