MCPcopy Create free account
hub / github.com/amule-project/amule / Sort

Method Sort

src/ServerList.cpp:568–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566};
567
568void 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
580CServer* CServerList::GetNextServer(bool bOnlyObfuscated)

Callers 2

ConnectToAnyServerMethod · 0.80
SortItemsMethod · 0.80

Calls 2

beginMethod · 0.45

Tested by

no test coverage detected