| 1797 | } |
| 1798 | |
| 1799 | std::vector<const CCommunity *> CServerBrowser::FavoriteCommunities() const |
| 1800 | { |
| 1801 | // This is done differently than SelectedCommunities because the favorite |
| 1802 | // communities should be returned in the order specified by the user. |
| 1803 | std::vector<const CCommunity *> vpFavorites; |
| 1804 | for(const auto &CommunityId : FavoriteCommunitiesFilter().Entries()) |
| 1805 | { |
| 1806 | const CCommunity *pCommunity = Community(CommunityId.Id()); |
| 1807 | if(pCommunity) |
| 1808 | { |
| 1809 | vpFavorites.push_back(pCommunity); |
| 1810 | } |
| 1811 | } |
| 1812 | return vpFavorites; |
| 1813 | } |
| 1814 | |
| 1815 | std::vector<const CCommunity *> CServerBrowser::CurrentCommunities() const |
| 1816 | { |
no test coverage detected