| 566 | }; |
| 567 | |
| 568 | void CServerList::Sort() |
| 569 | { |
| 570 | m_servers.sort(ServerPriorityComparator()); |
| 571 | // Once the list has been sorted, it doesn't really make sense to continue |
| 572 | // traversing the new order from the old position. Plus, there's a bug in |
| 573 | // version of libstdc++ before gcc4 such that iterators that were equal to |
| 574 | // end() were left dangling. |
| 575 | m_serverpos = m_servers.begin(); |
| 576 | m_statserverpos = m_servers.begin(); |
| 577 | } |
| 578 | |
| 579 | |
| 580 | CServer* CServerList::GetNextServer(bool bOnlyObfuscated) |
no test coverage detected