WC24PatchEngine: Make GetNetworkPatch() take a std::string_view

Makes it consistent with GetNetworkPatchByPayload()
This commit is contained in:
Lioncash 2023-12-14 14:18:38 -05:00
parent fa70a8fd01
commit 88431cfbca
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ void Reload()
LoadPatches();
}
std::optional<std::string> GetNetworkPatch(const std::string& source, IsKD is_kd)
std::optional<std::string> GetNetworkPatch(std::string_view source, IsKD is_kd)
{
const auto patch =
std::find_if(s_patches.begin(), s_patches.end(), [&source, &is_kd](const NetworkPatch& p) {

View File

@ -21,6 +21,6 @@ struct NetworkPatch final
void Reload();
std::optional<std::string> GetNetworkPatch(const std::string& source, IsKD is_kd);
std::optional<std::string> GetNetworkPatch(std::string_view source, IsKD is_kd);
std::optional<std::string> GetNetworkPatchByPayload(std::string_view source);
} // namespace WC24PatchEngine