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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user