Skip to content

Commit

Permalink
Fix the build failures due to the latest AzCore changes (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Junbo Liang <[email protected]>
  • Loading branch information
junbo75 authored Jul 8, 2022
1 parent 10d963f commit 8cff785
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Gem/Code/Source/NetSoakTestSystemComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ namespace AzNetworking

namespace AZ::ConsoleTypeHelpers
{
template <>
inline CVarFixedString ValueToString(const AzNetworking::ProtocolType& value)
{
return (value == AzNetworking::ProtocolType::Tcp) ? "tcp" : "udp";
}

template <>
inline bool StringSetToValue<AzNetworking::ProtocolType>(AzNetworking::ProtocolType& outValue, const ConsoleCommandContainer& arguments)
inline bool StringSetToValue(AzNetworking::ProtocolType& outValue, const ConsoleCommandContainer& arguments)
{
if (!arguments.empty())
{
Expand All @@ -54,7 +52,6 @@ namespace AZ::ConsoleTypeHelpers
return false;
}

template <>
inline CVarFixedString ValueToString(const AzNetworking::SoakMode& value)
{
if (value == AzNetworking::SoakMode::Client)
Expand All @@ -68,8 +65,7 @@ namespace AZ::ConsoleTypeHelpers
return "loopback";
}

template <>
inline bool StringSetToValue<AzNetworking::SoakMode>(AzNetworking::SoakMode& outValue, const ConsoleCommandContainer& arguments)
inline bool StringSetToValue(AzNetworking::SoakMode& outValue, const ConsoleCommandContainer& arguments)
{
if (!arguments.empty())
{
Expand Down

0 comments on commit 8cff785

Please sign in to comment.