| 55 | |
| 56 | #ifdef CLIENT_GUI |
| 57 | CStatTreeItemBase::CStatTreeItemBase(const CECTag *tag) |
| 58 | : m_label(static_cast<const CEC_StatTree_Node_Tag*>(tag)->GetDisplayString()), |
| 59 | m_uniqueid(tag->GetTagByNameSafe(EC_TAG_STATTREE_NODEID)->GetInt()) |
| 60 | { |
| 61 | wxASSERT(tag->GetTagName() == EC_TAG_STATTREE_NODE); |
| 62 | |
| 63 | for (CECTag::const_iterator it = tag->begin(); it != tag->end(); ++it) { |
| 64 | const CECTag *tmp = & *it; |
| 65 | if (tmp->GetTagName() == EC_TAG_STATTREE_NODE) { |
| 66 | m_children.push_back(new CStatTreeItemBase(tmp)); |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | #endif /* CLIENT_GUI */ |
| 71 | |
| 72 | CStatTreeItemBase::~CStatTreeItemBase() |
nothing calls this directly
no test coverage detected