MyClientDataVect_t SFTPTreeView::GetSelectionsItemData() { MyClientDataVect_t res; wxArrayTreeItemIds items; m_treeCtrl->GetSelections(items); for(size_t i = 0; i < items.GetCount(); ++i) { MyClientData* cd = GetItemData(items.Item(i)); if(cd) { res.push_back(cd); } } return res; }
MyClientDataVect_t SFTPTreeView::GetSelectionsItemData() { MyClientDataVect_t res; wxTreeListItems items; m_treeListCtrl->GetSelections(items); for(size_t i = 0; i < items.size(); ++i) { MyClientData* cd = GetItemData(items.at(i)); if(cd) { res.push_back(cd); } } return res; }