Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 7361fc0 commit 0fab009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/network/serverlink.cpp
Expand Up @@ -253,7 +253,7 @@ DE_PIMPL(ServerLink)
fetching = false;

fromMaster.clear();
int const count = N_MasterGet(0, 0);
int const count = N_MasterGet(0, nullptr);
for (int i = 0; i < count; i++)
{
shell::ServerInfo info;
Expand Down
Expand Up @@ -113,7 +113,7 @@ DE_PIMPL(MultiplayerServerMenuWidget)
ui::Data &items = self().items();

Set<String> foundHosts;
for (Address const &host : link.foundServers(mask))
for (const Address &host : link.foundServers(mask))
{
shell::ServerInfo info;
if (link.foundServerInfo(host, info, mask))
Expand All @@ -125,7 +125,7 @@ DE_PIMPL(MultiplayerServerMenuWidget)
// Remove obsolete entries.
for (ui::Data::Pos idx = 0; idx < items.size(); ++idx)
{
String const id = items.at(idx).data().asText();
const String id = items.at(idx).data().asText();
if (!foundHosts.contains(id))
{
items.remove(idx--);
Expand Down

0 comments on commit 0fab009

Please sign in to comment.