1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Improve network module in more C++ way

This commit is contained in:
skdltmxn
2022-02-10 05:57:25 +09:00
committed by GitHub
parent 052da74760
commit 29083f4cb2
19 changed files with 120 additions and 171 deletions

View File

@@ -67,7 +67,7 @@ int32_t ServerListEntry::CompareTo(const ServerListEntry& other) const
return String::Compare(a.Name, b.Name, true);
}
bool ServerListEntry::IsVersionValid() const
bool ServerListEntry::IsVersionValid() const noexcept
{
return Version.empty() || Version == network_get_version();
}
@@ -150,7 +150,7 @@ void ServerList::AddRange(const std::vector<ServerListEntry>& entries)
Sort();
}
void ServerList::Clear()
void ServerList::Clear() noexcept
{
_serverEntries.clear();
}