//MOPRH START - Added by SiRoB, Slugfiller: modid void CClientList::GetModStatistics(CRBMap<uint32, CRBMap<CString, uint32>* > *clientMods){ if (!clientMods) return; clientMods->RemoveAll(); // [TPT] Code improvement for (POSITION pos = list.GetHeadPosition(); pos != NULL;) { CUpDownClient* cur_client = list.GetNext(pos); switch (cur_client->GetClientSoft()) { case SO_EMULE : case SO_OLDEMULE: break; default: continue; } CRBMap<CString, uint32> *versionMods; if (!clientMods->Lookup(cur_client->GetVersion(), versionMods)){ versionMods = new CRBMap<CString, uint32>; versionMods->RemoveAll(); clientMods->SetAt(cur_client->GetVersion(), versionMods); } uint32 count; if (!versionMods->Lookup(cur_client->GetClientModVer(), count)) count = 1; else count++; versionMods->SetAt(cur_client->GetClientModVer(), count); } // [TPT] end }
void CBBrowserCaps::Clear(void) { s_bcDatas.RemoveAll(); s_bcDatasExt.RemoveAll(); }