| 870 | |
| 871 | |
| 872 | const CKnownFile *CSharedFileList::GetFileByIndex(unsigned int index) const |
| 873 | { |
| 874 | wxMutexLocker lock(list_mut); |
| 875 | if ( index >= m_Files_map.size() ) { |
| 876 | return NULL; |
| 877 | } |
| 878 | CKnownFileMap::const_iterator pos = m_Files_map.begin(); |
| 879 | std::advance(pos, index); |
| 880 | return pos->second; |
| 881 | } |
| 882 | |
| 883 | |
| 884 | CKnownFile* CSharedFileList::GetFileByID(const CMD4Hash& filehash) |
no test coverage detected